Basic project file container.
|
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
_get_sourcefiles(self)
Read-only access to self._sourcefiles . |
source code
|
|
|
_get_targetfiles(self)
Read-only access to self._targetfiles . |
source code
|
|
|
_get_transfiles(self)
Read-only access to self._transfiles . |
source code
|
|
|
__in__(self,
lhs)
@returns True if lhs is a file name or file
object in the project store. |
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 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
|
|
|
|
|
|
|
|
|
|
|
get_file(self,
fname,
mode=' rb ' )
Retrieve the file with the given name from the project store. |
source code
|
|
|
get_filename_type(self,
fname)
Get the type of file ('src', 'trans', 'tgt') with the given name. |
source code
|
|
|
get_proj_filename(self,
realfname)
Try and find a project file name for the given real file name. |
source code
|
|
|
|
|
save(self,
filename=None,
*args,
**kwargs)
Save the project in some way. |
source code
|
|
|
update_file(self,
pfname,
infile)
Remove the project file with name pfname and add the
contents from infile to the project under the same file
name. |
source code
|
|
|
_fix_type_filename(self,
ftype,
fname)
Strip the path from the filename and prepend the correct prefix. |
source code
|
|
|
_generate_settings(self)
@returns A XML string that represents the current settings. |
source code
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|