Package Pootle :: Package storage :: Module ddtp :: Class DDTPStore
[show private | hide private]
[frames | no frames]

Type 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)
  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.
  list_packages(self)
List all packages in the store.
  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.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
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.

Generated by Epydoc 2.1 on Tue Aug 22 04:29:46 2006 http://epydoc.sf.net