| Home | Trees | Index | Help |
|---|
| Package Pootle :: Package storage :: Module ddtp :: Class DDTPStore |
|
object --+
|
DDTPStore
A DDTP translation store wrapper.
Stores DDTP translations. Provides methods to write the translations to Pootle storage or to DDTP files.| Method Summary | |
|---|---|
__init__(self,
ddtpmodule,
key)
| |
Register a package in the store. | |
Export a DDTPStore to DDTP format. | |
Import a DDTP-format translation into Pootle. | |
List all packages in the store. | |
Load store state from Pootle database. | |
Pick the name of the module where the package will end up. | |
Save current state of the store to Pootle database. | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
| Method Details |
|---|
add_package(self, package)Register a package in the store. |
export_store(self, stream)Export a DDTPStore to DDTP format. |
import_store(self, parsed_template, parsed_translation)Import a DDTP-format translation into Pootle. Overwrites current contents of the store. TODO: merging parsed_translation is a list of tuples (name, md5sum, description). |
list_packages(self)List all packages in the store. Returns a list of DDTPPackages sorted by name. |
load(self)Load store state from Pootle database. |
moduleName(self, package_name)Pick the name of the module where the package will end up. |
save(self)Save current state of the store to Pootle database. |
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Tue Aug 22 04:29:46 2006 | http://epydoc.sf.net |