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

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

No interface docstring
Int entry_count Undocumented
Method estimateBacklog Return approximate age of oldest request on the export queue.
Method addRequest Add a request to export a set of files.
Method getRequest Get the next request from the queue.
Method removeRequest Remove a request off the queue.
entry_count =
Undocumented
def estimateBacklog():
Return approximate age of oldest request on the export queue.
def addRequest(person, potemplates=None, pofiles=None, format=TranslationFileFormat.PO):
Add a request to export a set of files.
ParameterspotemplatesPO template or list of PO templates to export, or None.
pofilesA list of PO files to export.
def getRequest():
Get the next request from the queue.

Returns a tuple containing:
  • The person who made the request.
  • A list of POFiles and/or POTemplates that are to be exported.
  • The requested TranslationFileFormat.
  • The list of request record ids making up this request.

The objects are all read-only objects from the slave store. The request ids list should be passed to removeRequest when processing of the request completes.

def removeRequest(request_ids):
Remove a request off the queue.
Parametersrequest_idsA list of request record ids as returned by getRequest.
API Documentation for Launchpad, generated by pydoctor at 2019-08-17 00:00:04.