~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Stuart Bishop
  • Date: 2011-10-20 06:24:21 UTC
  • mfrom: (9893.10.6 trivial)
  • mto: This revision was merged to the branch mainline in revision 14178.
  • Revision ID: stuart.bishop@canonical.com-20111020062421-8irsskytxf2i0srg
Merged trivial into distinct-db-users.

Show diffs side-by-side

added added

removed removed

Lines of Context:
201
201
            Join(ProductSeries, Product.id == ProductSeries.productID),
202
202
            Join(POTemplate, ProductSeries.id == POTemplate.productseriesID),
203
203
            ]
204
 
        # XXX j.c.sackett 2010-11-19 bug=677532 It's less than ideal that
205
 
        # this query is using _translations_usage, but there's no cleaner
206
 
        # way to deal with it. Once the bug above is resolved, this should
207
 
        # should be fixed to use translations_usage.
208
204
        return store.using(*origin).find(
209
205
            Product,
210
206
            Product.project == self.id,
211
 
            Product._translations_usage == ServiceUsage.LAUNCHPAD,
 
207
            Product.translations_usage == ServiceUsage.LAUNCHPAD,
212
208
            ).config(distinct=True)
213
209
 
214
210
    def has_translatable(self):