~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-09-17 02:55:39 UTC
  • mfrom: (13970.5.2 target-pickers-go)
  • Revision ID: launchpad@pqm.canonical.com-20110917025539-5bumljanv43bn801
[r=sinzui][bug=820005, 851437,
        851440] Updates the target pickers to an enhanced version similar to
        person pickers, behind a feature flag.

Show diffs side-by-side

added added

removed removed

Lines of Context:
572
572
    po_message_count = Int()
573
573
    is_upstream_link_allowed = Bool()
574
574
    enable_bugfiling_duplicate_search = Bool()
 
575
    
 
576
    # XXX kiko 2006-08-16: Bad method name, no need to be a property.
 
577
    @property
 
578
    def currentrelease(self):
 
579
        """See `IDistributionSourcePackage`."""
 
580
        releases = self.distribution.getCurrentSourceReleases(
 
581
            [self.sourcepackagename])
 
582
        return releases.get(self)