| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
Storage --+
|
DummyStorageFS
|
|||
|
__init__(self,
storage_path,
enable_lock=False) Simple filesystem storage for amplee. |
||
|
shutdown(self) Shutdown the subversion storage. |
||
|
create_container(self,
collection_name) Creates a subdirectory within the storage directory If it already exists does nothing. |
||
|
path(self,
*args,
**kwargs) ... |
||
|
get_content(self,
path) Returns the content as a string of the resource found at 'path'. |
||
|
get_meta_data(self,
path) Returns the content as a string of the resource found at 'path'. |
||
|
put_content(self,
path,
content,
**kwargs) Set the content at 'path' of the resource. |
||
|
put_meta_data(self,
path,
content,
**kwargs) Set the content at 'path' of the resource. |
||
|
remove_content(self,
path) ... |
||
|
remove_meta_data(self,
path) ... |
||
|
persist(self,
*args,
**kwargs) ... |
||
|
exists(self,
path) Returns True if the resource at 'path' exists. |
||
|
ls(self,
collection_name,
ext) List resources with the provided extension in a collection Returns a dictionary like this: members[basename(abs_path)] = {'path': abs_path} Keyword arguments collection_name -- name of the directory in the working copy containing all the members of a collection. |
||
|
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.RLock 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
|
Shutdown the subversion storage. Does nothing effectively.
|
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 full path as a string of the resource relative to the storage directory
|
Returns the content as a string of the resource found at 'path'. If no resource could be found, an IOError is raised. Keyword arguments path -- Path to the resource as returned by get_path
|
Returns the content as a string of the resource found at 'path'. If no resource could be found, an IOError is raised. Keyword arguments path -- Path to the resource as returned by get_path
|
Set the content at 'path' of the resource. Keyword arguments path -- Path to the resource as returned by get_path content -- data as a string object
|
Set the content at 'path' of the resource. Keyword arguments path -- Path to the resource as returned by get_path content -- data as a string object
|
Remove the resource at 'path' Keyword arguments path -- Path to the resource as returned by get_path
|
Remove the resource at 'path' Keyword arguments path -- Path to the resource as returned by get_path
|
Does nothing in the filesystem storage
|
Returns True if the resource at 'path' exists. False otherwise. Keyword arguments path -- Path to the resource as returned by get_path
|
List resources with the provided extension in a collection
Returns a dictionary like this:
members[basename(abs_path)] = {'path': abs_path}
Keyword arguments
collection_name -- name of the directory in the working copy
containing all the members of a collection. Created if it does
not exists.
ext -- extension of resources to return
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0alpha3 on Sat Nov 18 23:31:57 2006 | http://epydoc.sourceforge.net |