l.t.i.p.IPOTemplateSet(Interface) : interface documentation

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

A set of PO templates.
Method __iter__ Return an iterator over all PO templates.
Method getAllByName Return a list with all PO templates with the given name.
Method getAllOrderByDateLastUpdated Return an iterator over all POTemplate sorted by modification.
Method getSubset Return a POTemplateSubset object depending on the given arguments.
Method getSharingSubset Return a POTemplateSharingSubset object depending on the given
Method getSubsetFromImporterSourcePackageName Return a POTemplateSubset based on the origin sourcepackagename.
Method getPOTemplateByPathAndOrigin Return an IPOTemplate that is stored at 'path' in source code and
Method preloadPOTemplateContexts Preload context objects for a sequence of POTemplates.
Method wipeSuggestivePOTemplatesCache Erase suggestive-templates cache.
Method removeFromSuggestivePOTemplatesCache Remove the given potemplate from the suggestive-templates cache.
Method populateSuggestivePOTemplatesCache Populate suggestive-templates cache.
def __iter__():
Return an iterator over all PO templates.
def getAllByName(name):
Return a list with all PO templates with the given name.
def getAllOrderByDateLastUpdated():
Return an iterator over all POTemplate sorted by modification.
def getSubset(distroseries=None, sourcepackagename=None, productseries=None, iscurrent=None, ordered_by_names=False):
Return a POTemplateSubset object depending on the given arguments.
def getSharingSubset(distribution=None, sourcepackagename=None, products=None):
Return a POTemplateSharingSubset object depending on the given arguments.
def getSubsetFromImporterSourcePackageName(distroseries, sourcepackagename, iscurrent=None):
Return a POTemplateSubset based on the origin sourcepackagename.
def getPOTemplateByPathAndOrigin(path, productseries=None, distroseries=None, sourcepackagename=None):
Return an IPOTemplate that is stored at 'path' in source code and
came from the given arguments.

Return None if there is no such IPOTemplate.

def preloadPOTemplateContexts(templates):
Preload context objects for a sequence of POTemplates.
def wipeSuggestivePOTemplatesCache():
Erase suggestive-templates cache.
ReturnsNumber of rows deleted.
def removeFromSuggestivePOTemplatesCache(potemplate):
Remove the given potemplate from the suggestive-templates cache.
ReturnsTrue if the template was in the cache.
def populateSuggestivePOTemplatesCache():
Populate suggestive-templates cache.
ReturnsNumber of rows inserted.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.