~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-10-06 01:24:37 UTC
  • mfrom: (14039.1.12 bug-759467)
  • Revision ID: launchpad@pqm.canonical.com-20111006012437-x4xn9cohnyp5ztlx
[r=gmb][bug=759467] [r=gmb][bug=759467] Store
 INCOMPLETE_WITH_RESPONSE and INCOMPLETE_WITHOUT_RESPONSE for BugTask status
 to make queries more efficient.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
from canonical.launchpad import _
23
23
from lp.bugs.interfaces.bugtask import (
24
24
    BugTaskImportance,
25
 
    BugTaskStatus,
 
25
    BugTaskStatusSearch,
26
26
    )
27
27
from lp.registry.interfaces.distribution import IDistribution
28
28
from lp.registry.interfaces.distroseries import IDistroSeries
62
62
    milestone = Object(IMilestone, readonly=True)
63
63
 
64
64
    status = Choice(
65
 
        title=_('Status'), vocabulary=BugTaskStatus, readonly=True)
 
65
        title=_('Status'), vocabulary=BugTaskStatusSearch, readonly=True)
66
66
    importance = Choice(
67
67
        title=_('Importance'), vocabulary=BugTaskImportance, readonly=True)
68
68
 
81
81
    def getBugSummaryContextWhereClause():
82
82
        """Return a storm clause to filter bugsummaries on this context.
83
83
 
84
 
        This method is intentended for in-appserver use only.
85
 
        
 
84
        This method is intended for in-appserver use only.
 
85
 
86
86
        :return: Either a storm clause to filter bugsummaries, or False if
87
87
            there cannot be any matching bug summaries.
88
88
        """