| Home | Trees | Index | Help |
|---|
| Package Pootle :: Package storage :: Module api :: Class IDatabase |
|
object--+ |Interface--+ | IDatabase
A database.
This acts as the root of the content object hierarchy.
Its constructor may accept arbitrary arguments for configuration. TODO: unified way to open a database (a config parser object)?| Method Summary | |
|---|---|
Commit a transaction. | |
Flush modified data to the database. | |
Mark an object as expired. | |
Commit a transaction. | |
Start a transaction. | |
| 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 |
languages = Pootle.storage.api.IMapping |
type |
root = Pootle.storage.api.IFolder |
| Method Details |
|---|
commitTransaction(self)Commit a transaction. Does nothing if transactions are not supported. |
flush(self)Flush modified data to the database. To be used when some attributes have been changed on an object. Not needed for TranslationUnits and TranslationStores, which have their own save() method. |
refresh(self, obj)Mark an object as expired. Reloads the object from database. Call this on modified objects after performing a transaction rollback. |
rollbackTransaction(self)Commit a transaction. Raises NotImplementedError if transactions are not supported. |
startTransaction(self)Start a transaction. Does nothing if transactions are not supported. |
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Tue Aug 22 04:29:45 2006 | http://epydoc.sf.net |