l.t.u.t.SingleFileStorageStrategy(StorageStrategy) : class documentation

Part of lp.translations.utilities.translation_export View In Hierarchy

Store a single file for export.

Provides a way to store a single PO or POT file, but through the same API that TarballFileStorageStrategy offers to store any number of files into a single tarball. Both classes have an addFile operation, though a SingleFileStorageStrategy instance will only let you add a single file.

(The type of the stored file matters in this strategy because the storage strategy declares the MIME type of the file it produces).

Method addFile See StorageStrategy.
Method isEmpty See StorageStrategy.
Method isFull See StorageStrategy.
Method export See StorageStrategy.
def addFile(self, path, extension, content, mime_type):
See StorageStrategy.
def isEmpty(self):
See StorageStrategy.
def isFull(self):
See StorageStrategy.

A SingleFileStorageStrategy can only store one file.

def export(self):
See StorageStrategy.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.