~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/model/cve.py

  • Committer: William Grant
  • Date: 2011-12-30 07:08:24 UTC
  • mfrom: (14606.2.10 apocatest)
  • mto: This revision was merged to the branch mainline in revision 14610.
  • Revision ID: william.grant@canonical.com-20111230070824-j5qaapyxh3zehhfm
Merge apocatest.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
# Zope
23
23
from zope.interface import implements
24
24
 
25
 
from canonical.database.constants import UTC_NOW
26
 
from canonical.database.datetimecol import UtcDateTimeCol
27
 
from canonical.database.enumcol import EnumCol
28
 
from canonical.database.sqlbase import (
29
 
    SQLBase,
30
 
    sqlvalues,
31
 
    )
32
25
from lp.app.validators.cve import valid_cve
33
26
from lp.bugs.interfaces.buglink import IBugLinkTarget
34
27
from lp.bugs.interfaces.cve import (
39
32
from lp.bugs.model.bugcve import BugCve
40
33
from lp.bugs.model.buglinktarget import BugLinkTargetMixin
41
34
from lp.bugs.model.cvereference import CveReference
 
35
from lp.services.database.constants import UTC_NOW
 
36
from lp.services.database.datetimecol import UtcDateTimeCol
 
37
from lp.services.database.enumcol import EnumCol
 
38
from lp.services.database.sqlbase import (
 
39
    SQLBase,
 
40
    sqlvalues,
 
41
    )
42
42
 
43
43
 
44
44
cverefpat = re.compile(r'(CVE|CAN)-((19|20)\d{2}\-\d{4})')