Beispiel #1
0
    def _review_targets(self):
        """Query and aggregate the top targets for review.

        :return: a list of translation targets.  Multiple `POFile`s may be
            aggregated together into a single target.
        """
        person = ITranslationsPerson(self.context)
        pofiles = person.getReviewableTranslationFiles(
            no_older_than=self.history_horizon)

        return ReviewLinksAggregator().aggregate(pofiles)
Beispiel #2
0
    def _review_targets(self):
        """Query and aggregate the top targets for review.

        :return: a list of translation targets.  Multiple `POFile`s may be
            aggregated together into a single target.
        """
        person = ITranslationsPerson(self.context)
        pofiles = person.getReviewableTranslationFiles(
            no_older_than=self.history_horizon)

        return ReviewLinksAggregator().aggregate(pofiles)
 def _getReviewables(self, *args, **kwargs):
     """Shorthand for `self.person.getReviewableTranslationFiles`."""
     person = ITranslationsPerson(self.person)
     return list(person.getReviewableTranslationFiles(
         *args, **kwargs))
Beispiel #4
0
 def _getReviewables(self, *args, **kwargs):
     """Shorthand for `self.person.getReviewableTranslationFiles`."""
     person = ITranslationsPerson(self.person)
     return list(person.getReviewableTranslationFiles(*args, **kwargs))