l.t.m.t.TranslationsPerson : class documentation

Part of lp.translations.model.translationsperson View In Hierarchy

See 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.
def __init__(self, person):
Undocumented
@property
def translatable_languages(self):
See ITranslationsPerson.
def getTranslationHistory(self, no_older_than=None):
See ITranslationsPerson.
def hasTranslated(self):
See ITranslationsPerson.
@property
def translation_history(self):
See ITranslationsPerson.
@property
def translation_groups(self):
See ITranslationsPerson.
@property
def translators(self):
See ITranslationsPerson.
@cachedproperty
def _translations_relicensing_agreement(self):
Return whether translator agrees to relicense their translations.

If they have made no explicit decision yet, return None.

def get_translations_relicensing_agreement(self):
Undocumented
def set_translations_relicensing_agreement(self, value):
Set a translations relicensing decision by translator.

If they have already made a decision, overrides it with the new one.

def getReviewableTranslationFiles(self, no_older_than=None):
See ITranslationsPerson.
def _queryTranslatableFiles(self, no_older_than=None, languages=None):
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.
def getTranslatableFiles(self, no_older_than=None, urgent_first=True):
See ITranslationsPerson.
def _composePOFileReviewerCTEs(self, no_older_than):
Compose Storm CTEs for common POFile queries.

Returns a list of Storm CTEs, much the same as _composePOFileReviewerJoins.

def _composePOFileReviewerJoins(self, expect_reviewer_status=True):
Compose certain Storm joins for common 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.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.