l.t.s.po_export_queue : module documentation

Part of lp.translations.scripts

No module docstring
Class ExportResult The results of a translation export request.
Function generate_translationfiledata Generate TranslationFileData objects for POFiles/templates in list.
Function process_request Process a request for an export of Launchpad translation files.
Function process_queue Process all requests in the translation export queue.
def generate_translationfiledata(file_list, format):
Generate TranslationFileData objects for POFiles/templates in list.

This builds each TranslationFileData in memory only when it's needed, so the memory usage for an export doesn't accumulate.

def process_request(person, objects, format, logger):
Process a request for an export of Launchpad translation files.

After processing the request a notification email is sent to the requester with the URL to retrieve the file (or the tarball, in case of a request of multiple files) and information about files that we failed to export (if any).

def process_queue(transaction_manager, logger):
Process all requests in the translation export queue.

Each item is removed from the queue as it is processed.

API Documentation for Launchpad, generated by pydoctor at 2018-05-27 00:00:04.