Package amplee :: Package storage :: Class Storage
[hide private]
[frames] | no frames]

Class Storage

source code

object --+
         |
        Storage
Known Subclasses:
dummyfs.DummyStorageFS, storesvn.SubversionStorage, storedejavu.DejavuStorage, stores3.S3Storage

Base storage class. Should not be instanciated



Instance Methods [hide private]
  shutdown(self)
Shutdown the undrelying storage connections...
  create_container(self, name)
Creates a container within a storage.
  path(self, *args, **kwargs)
Returns a path usable by the storage Do not expect this method to return a string or unicode.
  get_content(self, *args, **kwargs)
Returns the content of a resource...
  get_meta_data(self, *args, **kwargs)
Returns the meta data of a resource...
  put_content(self, *args, **kwargs)
Puts the content of a resource...
  put_meta_data(self, *args, **kwargs)
Sets the meta-data of a resource...
  remove_content(self, *args, **kwargs)
Delete a resource...
  remove_meta_data(self, *args, **kwargs)
Delete meta-data...
  persist(self, *args, **kwargs)
Persist the operations made...
  exists(self, path)
Checks whether or not a path is valid for the storage...
  ls(self, collection_name_or_id, **kwargs)
Returns existing members...

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

shutdown(self)

source code 
Shutdown the undrelying storage connections

create_container(self, name)

source code 
Creates a container within a storage.
A container means whatever is meaningful for the subclass storage.
A directory in the filesystem storage, a OBTree in the ZODB
storage, a table in a database storage.

path(self, *args, **kwargs)

source code 
Returns a path usable by the storage
Do not expect this method to return a string or unicode.
It can return whatever type makes sense to the storage

get_content(self, *args, **kwargs)

source code 
Returns the content of a resource

get_meta_data(self, *args, **kwargs)

source code 
Returns the meta data of a resource

put_content(self, *args, **kwargs)

source code 
Puts the content of a resource

put_meta_data(self, *args, **kwargs)

source code 
Sets the meta-data of a resource

remove_content(self, *args, **kwargs)

source code 
Delete a resource

remove_meta_data(self, *args, **kwargs)

source code 
Delete meta-data

persist(self, *args, **kwargs)

source code 
Persist the operations made

exists(self, path)

source code 
Checks whether or not a path is valid for the storage

ls(self, collection_name_or_id, **kwargs)

source code 
Returns existing members