~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/model/projectgroup.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-04-12 13:17:34 UTC
  • mfrom: (12775.3.11 bug-736002)
  • Revision ID: launchpad@pqm.canonical.com-20110412131734-td8mjeehq8z93uzs
[r=jtv][bug=736002] Speed up +bugtarget-portlet-tags-content.

Show diffs side-by-side

added added

removed removed

Lines of Context:
343
343
        return get_bug_tags(
344
344
            "BugTask.product IN (%s)" % ",".join(product_ids))
345
345
 
346
 
    def getUsedBugTagsWithOpenCounts(self, user):
 
346
    def getUsedBugTagsWithOpenCounts(self, user, wanted_tags=None):
347
347
        """See `IHasBugs`."""
348
348
        if not self.products:
349
349
            return []
350
350
        product_ids = [product.id for product in self.products]
351
351
        return get_bug_tags_open_count(
352
 
            BugTask.productID.is_in(product_ids), user)
 
352
            BugTask.productID.is_in(product_ids), user,
 
353
            wanted_tags=wanted_tags)
353
354
 
354
355
    def _getBugTaskContextClause(self):
355
356
        """See `HasBugsBase`."""