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

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

Store any number of files for export as a tarball.

Similar to SingleFileStorageStrategy, but lets you store any number of files using the same API. Each file is written into the resulting tarball as soon as it is added. There is no need to keep the full contents of the tarball in memory at any single time.

Method __init__ Initialze empty storage strategy, or subsume single-file one.
Method addFile See StorageStrategy.
Method isEmpty See StorageStrategy.
Method isFull See StorageStrategy.
Method export See StorageStrategy.
def __init__(self, single_file_storage=None):
Initialze empty storage strategy, or subsume single-file one.
def addFile(self, path, extension, content, mime_type):
See StorageStrategy.
def isEmpty(self):
See StorageStrategy.
def isFull(self):
See StorageStrategy.

A TarballFileStorageStrategy can store any number of files, so no.

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