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

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

Automatic approval of template files uploaded from bzr branches.
Method __init__ Create the approver and build the approval list by comparing
Method unmatched_objects The number of IPOTemplate objects that are not matched by path
Method unmatched_files The number of files being imported that are not matched by path
Method approve Check the given ImportQueueEntry against the internal approval
def __init__(self, files, productseries=None, distroseries=None, sourcepackagename=None):
Create the approver and build the approval list by comparing the given files as found in the source tree to the database entries.

Either productseries or distroseries/sourcepackagename must be given but not all.

ParametersfilesA list of paths to the translation files.
productseriesThe productseries that this upload is for.
distroseriesThe distroseries that this upload is for.
sourcepackagenameThe sourcepackagename that this upload is for.
@property
def unmatched_objects(self):
The number of IPOTemplate objects that are not matched by path to a file being imported.
@property
def unmatched_files(self):
The number of files being imported that are not matched by path to an IPOTemplate object.
def approve(self, entry):
Check the given ImportQueueEntry against the internal approval list and set its values accordingly.
ParametersentryThe queue entry that needs to be approved.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.