| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
Storage --+
|
FilesystemStorage
|
|||
|
|||
|
|||
| object |
|
||
| StorageResourceInfo or subclass |
|
||
| object |
|
||
| string |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
| bool |
|
||
| dict |
|
||
| tuple |
|
||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Simple filesystem storage for amplee. If storage path does not exist, it is created. When the locking is enabled it creates a threading.Lock instance which is used for writing operations (put and remove). Keyword arguments storage_path -- absolute path to the top level directory which will contain collections and resources enable_lock -- if True, thread locking will be enabled during write operations encoding -- used to encode the path elements
|
|
Creates a subdirectory within the storage directory If it already exists does nothing. Keyword argument collection_name -- name of the directory to create
|
|
Returns the content as a string of the resource found at 'info.key'. If no resource could be found, an amplee.error.UnknownResource is raised. Keyword arguments info -- Path to the resource as returned by info()
|
Returns the content as a string of the resource found at 'info.key'. If no resource could be found, an amplee.error.UnknownResource is raised. Keyword arguments info -- Path to the resource as returned by info()
|
Set the content at 'info' of the resource. Keyword arguments info -- Path to the resource as returned by info() content -- data as a string object or a file object. In the latter case read() MUST return the full content as a byte string.
|
Set the content at 'info' of the resource. Keyword arguments info -- Path to the resource as returned by info() content -- data as a string or a file object. In the latter case read() MUST return the full content as a byte string.
|
Remove the resource at 'info' Keyword arguments info -- Path to the resource as returned by info()
|
Remove the resource at 'path' Keyword arguments info -- Path to the resource as returned by info()
|
|
Returns True if the resource at 'info.key' exists. False otherwise. Keyword arguments info -- Path to the resource as returned by info()
|
List all the existing resources of a collection Returns a dictionary like this: members[basename(abs_path)] = StorageResourceInfo Keyword arguments collection_name -- name of the collection
|
Yield members matching the parameters. Keyword arguments collection_name -- name of the collection
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Sun Feb 17 14:54:46 2008 | http://epydoc.sourceforge.net |