~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/browser/bugtask.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-08-02 05:35:39 UTC
  • mfrom: (13543.8.3 iseriesbugtarget)
  • Revision ID: launchpad@pqm.canonical.com-20110802053539-mtuhwpy3robzo470
[r=lifeless][bug=817336] Add ISeriesBugTarget,
 allowing easy detection of bug tasks on series targets.

Show diffs side-by-side

added added

removed removed

Lines of Context:
220
220
    BugNominationStatus,
221
221
    IBugNominationSet,
222
222
    )
 
223
from lp.bugs.interfaces.bugtarget import ISeriesBugTarget
223
224
from lp.bugs.interfaces.bugtask import (
224
225
    BugBlueprintSearch,
225
226
    BugBranchSearch,
3399
3400
 
3400
3401
        Returns True or False.
3401
3402
        """
3402
 
        if self.context.productseries or self.context.distroseries:
3403
 
            return True
3404
 
        return False
 
3403
        return ISeriesBugTarget.providedBy(self.context.target)
3405
3404
 
3406
3405
    def taskLink(self):
3407
3406
        """Return the proper link to the bugtask whether it's editable."""