| Home | Trees | Index | Help |
|---|
| Package Pootle :: Package storage :: Module api :: Class IModule |
|
object--+ |Interface--+ |IAnnotatable--+ |object--+ | | |Interface--+ | | |IHaveStatistics--+ |object--+ | | |Interface--+ | | |IMapping--+ |object--+ | | |Interface--+ | | |IRefersToDB--+ |object--+ | | |Interface--+ | | |ISearchable--+ | IModule
An object corresponding to a project.
This loosely corresponds to a .pot file and a set of its translations.
Maps 'la_CO' identifiers to TranslationStores.
A module contains a 'template' translation store (no translations) and a set of translation stores with translated data.
Note that the different translations can differ structurally from the normal template. The differences can be resolved using merging as an external process.| Method Summary | |
|---|---|
Create a new empty TranslationStore bound to this module. | |
| Inherited from IHaveStatistics | |
Return statistics for this object. | |
| Inherited from IMapping | |
Delete key from container. | |
Get object by key. | |
Return length of store. | |
Get object by key, return None if not found. | |
Return list of tuples (key, value). | |
Return iterator over values. | |
Return list of object keys. | |
Return list of object values. | |
| Inherited from ISearchable | |
Search for a substring in all translation units. | |
| Inherited from object | |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
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) | |
| Class Variable Summary | |
|---|---|
type |
description = Pootle.storage.api.Unicode |
type |
folder = Pootle.storage.api.IFolder |
type |
key = Pootle.storage.api.Id |
type |
name = Pootle.storage.api.Unicode |
type |
template = Pootle.storage.api.Interface |
| Inherited from IAnnotatable | |
NoneType |
annotations = None |
| Inherited from IRefersToDB | |
NoneType |
db = None |
| Method Details |
|---|
add(self, key, copy_template=False)Create a new empty TranslationStore bound to this module. If a template with the given key already exists, raise KeyError. `lang_key` is a language identifier, e.g., 'pt_BR' or 'lt'. If `lang_key` is None, the resulting template will be put into the `template` attribute. If `copy_template` is True, the template will be copied on the new translation store.
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Tue Aug 22 04:29:46 2006 | http://epydoc.sf.net |