l.t.m.p.TranslationTemplatesCollection(Collection) : class documentation

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

A Collection of POTemplate.
Method restrictProductSeries Undocumented
Method restrictDistroSeries Undocumented
Method restrictSourcePackageName Undocumented
Method restrictCurrent Select based on POTemplate.iscurrent.
Method restrictName Select based on POTemplate.name.
Method joinPOFile Join POFile into the collection.
Method joinOuterPOFile Outer-join POFile into the collection.

Inherited from Collection:

Method __init__ Construct a collection, possibly based on another one.
Method refine Return a copy of self with further restrictions, tables etc.
Method use Return a copy of this collection that uses the given store.
Method joinInner Convenience method: inner-join cls into the query.
Method joinOuter Outer-join cls into the query.
Method select Return a result set containing the requested values.
Method _parseTablesArg Turn tables argument into a list.
def restrictProductSeries(self, productseries):
Undocumented
def restrictDistroSeries(self, distroseries):
Undocumented
def restrictSourcePackageName(self, sourcepackagename):
Undocumented
def restrictCurrent(self, current_value=True):
Select based on POTemplate.iscurrent.
Parameterscurrent_valueThe value for iscurrent that you are looking for. Defaults to True, meaning this will restrict to current templates. If False, will select obsolete templates instead.
ReturnsA TranslationTemplatesCollection based on this one, but restricted to ones with the desired iscurrent value.
def restrictName(self, template_name):
Select based on POTemplate.name.
ParameterstemplateThe value for name that you are looking for.
ReturnsA TranslationTemplatesCollection based on this one but restricted to ones with the desired `name value.
def joinPOFile(self):
Join POFile into the collection.
ReturnsA TranslationTemplatesCollection with an added inner join to POFile.
def joinOuterPOFile(self, language=None):
Outer-join POFile into the collection.
ReturnsA TranslationTemplatesCollection with an added outer join to POFile.
API Documentation for Launchpad, generated by pydoctor at 2018-05-26 00:00:07.