Part of lp.translations.model.translationsperson View In Hierarchy
ITranslationsPerson
.Method | __init__ | Undocumented |
Method | translatable_languages | See ITranslationsPerson . |
Method | getTranslationHistory | See ITranslationsPerson . |
Method | hasTranslated | See ITranslationsPerson . |
Method | translation_history | See ITranslationsPerson . |
Method | translation_groups | See ITranslationsPerson . |
Method | translators | See ITranslationsPerson . |
Method | get_translations_relicensing_agreement | Undocumented |
Method | set_translations_relicensing_agreement | Set a translations relicensing decision by translator. |
Method | getReviewableTranslationFiles | See ITranslationsPerson . |
Method | getTranslatableFiles | See ITranslationsPerson . |
Method | _translations_relicensing_agreement | Return whether translator agrees to relicense their translations. |
Method | _queryTranslatableFiles | Get `POFile`s this person could help translate. |
Method | _composePOFileReviewerCTEs | Compose Storm CTEs for common POFile queries. |
Method | _composePOFileReviewerJoins | Compose certain Storm joins for common POFile queries. |
If they have made no explicit decision yet, return None.
If they have already made a decision, overrides it with the new one.
Get `POFile`s this person could help translate. :param no_older_than: Oldest involvement to consider. If the person last worked on a `POFile` before this date, that counts as not having worked on it. :param languages: Optional set of languages to restrict search to. :return: An unsorted query yielding `POFile`s.
POFile
queries.
Returns a list of Storm CTEs, much the same as _composePOFileReviewerJoins.
POFile
queries.
Returns a list of Storm joins for a query on POFile
. The
joins will involve Distribution
, DistroSeries
, POFile
,
Product
, ProductSeries
, ProjectGroup
, TranslationGroup
,
TranslationTeam
, and Translator
.
The joins will restrict the ultimate query to POFile`s
distributions that use Launchpad for translations, which have a
translation group and for which `self
is a reviewer.
The added joins may make the overall query non-distinct, so be sure to enforce distinctness.