~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/translations/model/translationsperson.py

  • Committer: Curtis Hovey
  • Date: 2011-08-21 14:21:06 UTC
  • mto: This revision was merged to the branch mainline in revision 13745.
  • Revision ID: curtis.hovey@canonical.com-20110821142106-x93hajd6iguma8gx
Update test that was enforcing bad grammar.

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
 
129
129
    def getReviewableTranslationFiles(self, no_older_than=None):
130
130
        """See `ITranslationsPerson`."""
131
 
        if self.person.is_team:
 
131
        if self.person.isTeam():
132
132
            # A team as such does not work on translations.  Skip the
133
133
            # search for ones the team has worked on.
134
134
            return []
178
178
        :param languages: Optional set of languages to restrict search to.
179
179
        :return: An unsorted query yielding `POFile`s.
180
180
        """
181
 
        if self.person.is_team:
 
181
        if self.person.isTeam():
182
182
            return []
183
183
 
184
184
        tables = self._composePOFileReviewerJoins(
278
278
        # translation focus.
279
279
        distrojoin_conditions = And(
280
280
            Distribution.id == DistroSeries.distributionID,
281
 
            Distribution.translations_usage == ServiceUsage.LAUNCHPAD,
 
281
            Distribution._translations_usage == ServiceUsage.LAUNCHPAD,
282
282
            Distribution.translation_focusID == DistroSeries.id)
283
283
 
284
284
        DistroJoin = LeftJoin(Distribution, distrojoin_conditions)
291
291
        # should be fixed to use translations_usage.
292
292
        ProductJoin = LeftJoin(Product, And(
293
293
            Product.id == ProductSeries.productID,
294
 
            Product.translations_usage == ServiceUsage.LAUNCHPAD,
 
294
            Product._translations_usage == ServiceUsage.LAUNCHPAD,
295
295
            Product.active == True))
296
296
 
297
297
        ProjectJoin = LeftJoin(