l.t.m.translationimportqueue : module documentation

Part of lp.translations.model

No module docstring
Function is_gettext_name Does given file name indicate it's in gettext (PO or POT) format?
Function collect_import_info Collect basic information about import for feedback to user.
Function compose_approval_conflict_notice Create a note to warn about an approval conflict.
Class TranslationImportQueueEntry No class docstring; 21/21 methods documented
Function list_product_request_targets Return list of Products with import queue entries.
Function list_distroseries_request_targets Return list of DistroSeries with import queue entries.
Class TranslationImportQueue No class docstring; 29/29 methods documented
def is_gettext_name(path):
Does given file name indicate it's in gettext (PO or POT) format?
def collect_import_info(queue_entry, imported_object, warnings):
Collect basic information about import for feedback to user.
Returnsa dict providing substitutions for various items used in generating import notices.
def compose_approval_conflict_notice(domain, templates_count, sample):
Create a note to warn about an approval conflict.

The note warns about the situation where one productseries, or source package, or in some cases distroseries has multiple actice templates with the same translation domain.

ParametersdomainThe domain that's causing trouble.
templates_countThe number of clashing templates.
sampleIterable of matching templates. Does not need to be complete, just enough to report the problem usefully.
ReturnsA string describing the problematic clash.
def list_product_request_targets(user, status_condition):
Return list of Products with import queue entries.
Parametersstatus_conditionStorm conditional restricting the queue-entry status to look for.
ReturnsA list of Product, distinct and ordered by name.
def list_distroseries_request_targets(status_condition):
Return list of DistroSeries with import queue entries.
Parametersstatus_conditionStorm conditional restricting the queue-entry status to look for.
ReturnsA list of DistroSeries, distinct and ordered by (Distribution.name, DistroSeries.name).
API Documentation for Launchpad, generated by pydoctor at 2018-05-26 00:00:07.