Represents a translate project bundle (zip archive).
|
|
__init__(self,
fname)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
append_file(self,
afile,
fname,
ftype='trans',
delete_orig=False)
Append the given file to the project with the given filename, marked
to be of type C{ftype} ('src', 'trans', 'tgt'). |
source code
|
|
|
|
remove_file(self,
fname,
ftype=None)
Remove the file with the given project name from the project. |
source code
|
|
|
|
|
|
|
cleanup(self)
Clean up our mess: remove temporary files. |
source code
|
|
|
|
get_file(self,
fname)
Retrieve a project file (source, translation or target file) from the
project archive. |
source code
|
|
|
|
|
|
|
load(self,
zipname)
Load the bundle project from the zip file of the given name. |
source code
|
|
|
|
save(self,
filename=None)
Save all project files to the bundle zip file. |
source code
|
|
|
|
update_file(self,
pfname,
infile)
Updates the file with the given project file name with the contents
of infile. |
source code
|
|
|
|
|
|
|
_create_temp_zipfile(self)
Create a new zip file with a temporary file name (with mode 'w'). |
source code
|
|
|
|
|
|
|
_update_from_tempfiles(self)
Update project files from temporary files. |
source code
|
|
|
|
_zip_add(self,
pfname,
infile)
Add the contents of infile to the zip with file name
pfname. |
source code
|
|
|
|
_zip_delete(self,
fnames)
Delete the files with the given names from the zip file
(self.zip). |
source code
|
|
|
Inherited from projstore.ProjectStore:
__del__,
__in__,
append_sourcefile,
append_targetfile,
append_transfile,
get_filename_type,
remove_sourcefile,
remove_targetfile,
remove_transfile
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|