l.t.b.p.PersonTranslationView(LaunchpadView) : class documentation

Part of lp.translations.browser.person View In Hierarchy

Known subclasses: lp.translations.browser.person.PersonTranslationReviewView

View for translation-related Person pages.
Method __init__ Undocumented
Method page_title Undocumented
Method recent_activity Recent translation activity by this person.
Method latest_activity Single latest translation activity by this person.
Method translation_groups Return translation groups a person is a member of.
Method translators Return translators a person is a member of.
Method person_is_reviewer Is this person in a translation group?
Method person_is_translator Is this person active in translations?
Method person_includes_me Is the current user (a member of) this person?
Method requires_preferred_languages Does this person need to set preferred languages?
Method should_display_message Should a certain TranslationMessage be displayed.
Method all_projects_and_packages_to_review Top projects and packages for this person to review.
Method top_projects_and_packages_to_review Suggest translations for this person to review.
Method num_projects_and_packages_to_review How many translations do we suggest for reviewing?
Method top_projects_and_packages_to_translate Suggest translations for this person to help complete.
Method translations_to_complete_table Undocumented
Method translations_to_review_table Undocumented
Method _review_targets Query and aggregate the top targets for review.
Method _getTargetsForTranslation Get translation targets for this person to translate.
Method _addToTargetsList Add new_targets to existing_targets list.
def __init__(self, *args, **kwargs):
Undocumented
@property
def page_title(self):
Undocumented
@cachedproperty
def recent_activity(self):
Recent translation activity by this person.

If the translation activity is associated with a project, we ensure that the project is active.

@cachedproperty
def latest_activity(self):
Single latest translation activity by this person.
@cachedproperty
def translation_groups(self):
Return translation groups a person is a member of.
@cachedproperty
def translators(self):
Return translators a person is a member of.
@property
def person_is_reviewer(self):
Is this person in a translation group?
@property
def person_is_translator(self):
Is this person active in translations?
@property
def person_includes_me(self):
Is the current user (a member of) this person?
@property
def requires_preferred_languages(self):
Does this person need to set preferred languages?
def should_display_message(self, translationmessage):
Should a certain TranslationMessage be displayed.

Return False if user is not logged in and message may contain sensitive data such as email addresses.

Otherwise, return True.

@cachedproperty
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.
def _getTargetsForTranslation(self, max_fetch=None):
Get translation targets for this person to translate.

Results are ordered from most to fewest untranslated messages.

@cachedproperty
def all_projects_and_packages_to_review(self):
Top projects and packages for this person to review.
def _addToTargetsList(self, existing_targets, new_targets, max_items, max_overall):
Add new_targets to existing_targets list.

This is for use in showing top-10 ists of translations a user should help review or complete.

Parametersexisting_targetsTranslation targets that are already being listed.
new_targetsTranslation targets to add. Ones that were already in existing_targets will not be added again.
max_itemsMaximum number of targets from new_targets to add.
max_overallMaximum overall size of the resulting list. What happens if existing_targets already exceeds this size is none of your business.
ReturnsA list of translation targets containing all of existing_targets, followed by as many from new_targets as there is room for.
@property
def top_projects_and_packages_to_review(self):
Suggest translations for this person to review.
@cachedproperty
def num_projects_and_packages_to_review(self):
How many translations do we suggest for reviewing?
@property
def top_projects_and_packages_to_translate(self):
Suggest translations for this person to help complete.
def translations_to_complete_table(self):
Undocumented
def translations_to_review_table(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.