~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/interfaces/bugsummary.py

[r=lifeless][bug=793848] Add three more fields to BugSummary:
 importance, has_patch, fixed_upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
from zope.interface import Interface
11
11
from zope.schema import (
 
12
    Bool,
12
13
    Choice,
13
14
    Int,
14
15
    Object,
16
17
    )
17
18
 
18
19
from canonical.launchpad import _
19
 
from lp.bugs.interfaces.bugtask import BugTaskStatus
 
20
from lp.bugs.interfaces.bugtask import (
 
21
    BugTaskImportance,
 
22
    BugTaskStatus,
 
23
    )
20
24
from lp.registry.interfaces.distribution import IDistribution
21
25
from lp.registry.interfaces.distroseries import IDistroSeries
22
26
from lp.registry.interfaces.milestone import IMilestone
51
55
    sourcepackagename_id = Int(readonly=True)
52
56
    sourcepackagename = Object(ISourcePackageName, readonly=True)
53
57
 
 
58
    milestone_id = Int(readonly=True)
 
59
    milestone = Object(IMilestone, readonly=True)
 
60
 
 
61
    status = Choice(
 
62
        title=_('Status'), vocabulary=BugTaskStatus, readonly=True)
 
63
    importance = Choice(
 
64
        title=_('Importance'), vocabulary=BugTaskImportance, readonly=True)
 
65
 
 
66
    tag = Text(readonly=True)
 
67
 
54
68
    viewed_by_id = Int(readonly=True)
55
69
    viewed_by = Object(IPerson, readonly=True)
56
70
 
57
 
    tag = Text(readonly=True)
58
 
    status = Choice(
59
 
        title=_('Status'), vocabulary=BugTaskStatus, readonly=True)
60
 
 
61
 
    milestone_id = Int(readonly=True)
62
 
    milestone = Object(IMilestone, readonly=True)
 
71
    has_patch = Bool(readonly=True)
 
72
    fixed_upstream = Bool(readonly=True)