| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
Storage --+
|
DejavuStorage
|
|||
|
|||
|
|||
| object |
|
||
| StorageResourceInfo or subclass |
|
||
| object |
|
||
| string |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
| bool |
|
||
| dict |
|
||
| tuple |
|
||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Dejavu storage for amplee. Keyword arguments storage_type -- string indicating what underlying engine to use by dejavu config -- a dictionnary of parameters to provide to dejavu for that storage_type base_unit -- base dejavu.Unit class to use when creating collection units The base_unit must provide at least the same properties as DJMember and more if needed.
|
Shutdown the main dejavu arena object
|
Register a new unit within the arena This will create a table in your database with the name 'collection_name' and following the same schema as defined by the base_unit interface. If it is already registered it will not create it. Returns the newly created unit class. Note also that if your collection name contains a '/' it will be automatically replaced for a '_' since some db cannot process a table name with such a character. Keyword argument collection_name -- name of the unit to create
|
Returns a StorageResourceInfo instance. Keyword arguments collection_name -- collection name resource_name -- resource name to search for or None
|
Returns the content of the resource. Raises amplee.error.UnknownResource if info.key is None. Keyword argument info -- as returned by info()
|
Returns the content of the resource. Raises amplee.error.UnknownResource if info.key is None. Keyword argument info -- as returned by info()
|
Set the resource content of the unit instance Automatically flushes modification to the storage. Keyword arguments info -- as returned by info() If info.key is None then the unit is created is created. content -- string object or a file object to dump into mb.media_content. In the latter case read() MUST return the full content as a byte string. member_id -- as provided by member.member_id media_id -- as provided by member.media_id collection_name -- collection storing the resource
|
Set the resource content of the unit instance Automatically flushes modification to the storage. Keyword arguments info -- as returned by info() If info.key is None, it is created. content -- string object or a file object to dump into mb.media_content. In the latter case read() MUST return the full content as a byte string. member_id -- as provided by member.member_id media_id -- as provided by member.media_id
|
Removes the resource from the storage Keyword argument info -- as returned by info()
|
Removes the resource from the storage Keyword argument info -- as returned by info()
|
Does nothing in this storage.
|
True if 'info' is valid False otherwise Keyword argument info -- as returned by info()
|
List all the resources in a collection Keyword arguments collection_name -- name of the storage unit
|
List all the resources in a collection Keyword arguments collection_name -- name of the storage unit
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Oct 20 22:19:15 2008 | http://epydoc.sourceforge.net |