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

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

Interface representing the set of `IPOFileTranslator`records.

You won't find a "new" method here.  POFileTranslator records are
created directly in the database by a trigger that watches for
translation updates.
Method prefetchPOFileTranslatorRelations Batch-prefetch objects attached to given `POFileTranslator`s.
Method getForPersonPOFile Retrieve POFileTranslator for given Person and POFile.
Method getForTemplate Retrieve POFileTranslator objects associated iwth POTemplate.
def prefetchPOFileTranslatorRelations(pofiletranslators):
Batch-prefetch objects attached to given `POFileTranslator`s.

Fetches a large amount of data relevant to rendering the given
`POFileTranslator` objects in the user interface, to reduce the
number of queries needed while rendering the page.
def getForPersonPOFile(person, pofile):
Retrieve POFileTranslator for given Person and POFile.
Returnsone POFileTranslator object matching the requested person and pofile, or None.
def getForTemplate(potemplate):
Retrieve POFileTranslator objects associated iwth POTemplate.
ParameterspotemplatePOTemplate to look for.
ReturnsResult set of POFileTranslator records associated with POFile`s that translate `potemplate.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.