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

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

A set of POFiles.
Method getDummy Return a dummy pofile for the given po template and language.
Method getPOFilesByPathAndOrigin Find `IPOFile`s with 'path' in productseries or source package.
Method getBatch Read up to batch_size `POFile`s, starting at given id.
Method getPOFilesWithTranslationCredits Get POFiles with potential translation credits messages.
Method getPOFilesTouchedSince Return IDs for PO files that might have been updated since date.
def getDummy(potemplate, language):
Return a dummy pofile for the given po template and language.
def getPOFilesByPathAndOrigin(path, productseries=None, distroseries=None, sourcepackagename=None):
Find `IPOFile`s with 'path' in productseries or source package.

We filter the `IPOFile` objects to check only the ones related to the
given arguments 'productseries', 'distroseries' and
'sourcepackagename'.

:return: A Storm result set of matching `POFile`s.
def getBatch(starting_id, batch_size):
Read up to batch_size `POFile`s, starting at given id.

Returns a sequence of consecutive `POFile`s (ordered by id), starting
the smallest id that is no greater than starting_id.

The number of items in the sequence will only be less than batch_size
if the end of the table has been reached.
def getPOFilesWithTranslationCredits(untranslated=False):
Get POFiles with potential translation credits messages.

Returns a ResultSet of (POFile, POTMsgSet) tuples, ordered by
POFile.id.

:param untranslated: Look only for `POFile`s with a credits
    message that is not translated.
def getPOFilesTouchedSince(date):
Return IDs for PO files that might have been updated since date.
ParametersdateA datetime object to use as the starting date.
Returnsa ResultSet over POFile IDs for directly and indirectly (through sharing POFiles) touched POFiles since date.
API Documentation for Launchpad, generated by pydoctor at 2020-08-04 00:00:04.