~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/browser/distributionsourcepackage.py

  • Committer: Muharem Hrnjadovic
  • Date: 2009-10-22 10:33:00 UTC
  • mto: This revision was merged to the branch mainline in revision 9762.
  • Revision ID: muharem@ubuntu.com-20091022103300-8pfc9tfhflewf8ax
Refactored code:

  - moved distributionsourcepackage.getBugsByNumbers() to bugset.getByNumbers()
  - purged reference to removed template from soyuz/browser/configure.zcml

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
from canonical.cachedproperty import cachedproperty
29
29
from canonical.launchpad import _
 
30
from canonical.launchpad.interfaces import IBugSet
30
31
from lp.answers.interfaces.questionenums import QuestionStatus
31
32
from lp.soyuz.interfaces.archive import IArchiveSet
32
33
from lp.soyuz.interfaces.distributionsourcepackagerelease import (
205
206
             if not_empty(spr.changelog_entry)])
206
207
        unique_bugs = extract_bug_numbers(the_changelog)
207
208
        self._bug_data = list(
208
 
            self.context.getBugsByNumbers(unique_bugs.keys()))
 
209
            getUtility(IBugSet).getByNumbers(unique_bugs.keys()))
209
210
        unique_emails = extract_email_addresses(the_changelog)
210
211
        # The method below returns a [(EmailAddress,Person]] result set.
211
212
        result_set = self.context.getPersonsByEmail(unique_emails)