l.t.m.a.TranslationBuildApprover(object) : class documentation

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

Automatic approval of automatically build translation templates.
Method __init__ Undocumented
Method approve Approve a queue entry.
Method _getOrCreateGenericTemplate Try to find or create a template for a generic path.
Method _getOrCreatePOTemplateForPath Find the POTemplate that path should be imported into.
def __init__(self, filenames, productseries=None, distroseries=None, sourcepackagename=None):
Undocumented
def _getOrCreateGenericTemplate(self, path):
Try to find or create a template for a generic path.

Because a generic path (e.g. messages.pot) does not provide a template name, the name of the product or sourcepackagename is used when creating a new template.

ParameterspathThe path of the template file.
ReturnsThe template or None.
def _getOrCreatePOTemplateForPath(self, path):
Find the POTemplate that path should be imported into.

If no existing template could be found it creates one if possible.

ParameterspathThe path of the file to be imported.
ReturnsThe POTemplate instance or None.
def approve(self, entry):
Approve a queue entry.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.