~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Robert Collins
  • Date: 2011-06-20 07:03:18 UTC
  • mto: (7675.1045.516 db-devel)
  • mto: This revision was merged to the branch mainline in revision 13402.
  • Revision ID: robert@canonical.com-20110620070318-8hfk8vlcs7pbwn8g
replace countBugs with countBugs2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1519
1519
        :param params: the BugTaskSearchParams to search on.
1520
1520
        """
1521
1521
 
1522
 
    def countBugs(params, group_on):
1523
 
        """Count bugs that match params, grouping by group_on.
1524
 
 
1525
 
        :param param: A BugTaskSearchParams object.
1526
 
        :param group_on: The column(s) group on - .e.g (
1527
 
            Bugtask.distroseriesID, BugTask.milestoneID) will cause
1528
 
            grouping by distro series and then milestone.
1529
 
        :return: A dict {group_instance: count, ...}
1530
 
        """
1531
 
 
1532
 
    def countBugs2(user, contexts, group_on):
 
1522
    def countBugs(user, contexts, group_on):
1533
1523
        """Count open bugs that match params, grouping by group_on.
1534
1524
 
1535
1525
        This serves results from the bugsummary fact table: it is fast but not