~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/vocabularies.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-06-29 19:24:37 UTC
  • mfrom: (13324.2.1 bug-803482)
  • Revision ID: launchpad@pqm.canonical.com-20110629192437-vmzjkv2sqii2tsif
[r=allenap][bug=803482] Remove duplicates from
        DistroSeriesDerivationVocabulary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1819
1819
            *where)
1820
1820
        query = query.order_by(
1821
1821
            Distribution.displayname,
1822
 
            Desc(DistroSeries.date_created))
 
1822
            Desc(DistroSeries.date_created)).config(distinct=True)
1823
1823
        return [series for (series, distribution) in query]
1824
1824
 
1825
1825
    def searchParents(self, query=None):
1962
1962
        # package names are always lowercase.
1963
1963
        return super(SourcePackageNameVocabulary, self).getTermByToken(
1964
1964
            token.lower())
1965
 
        
 
1965
 
1966
1966
 
1967
1967
class DistributionSourcePackageVocabulary:
1968
1968