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

Type Storage

object --+
         |
        Storage


Base storage class. Should not be instanciated
Method Summary
  create_container(self, name)
Creates a container within a storage.
  exists(self, info)
Checks whether or not a info.key is valid for the storage
  get_content(self, *args, **kwargs)
Returns the content of a resource
  get_meta_data(self, *args, **kwargs)
Returns the meta data of a resource
  info(self, collection_name, resource_name)
Returns a StorageResourceInfo instance.
  ls(self, collection_name_or_id, ext)
Returns existing members as a dictionnary of the form members[resource_name] = StorageResourceInfo instance.
  persist(self, *args, **kwargs)
Persist the operations made
  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
  shutdown(self)
Shutdown the undrelying storage connections
    Inherited from object
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Method Details

create_container(self, name)

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.

exists(self, info)

Checks whether or not a info.key is valid for the storage

get_content(self, *args, **kwargs)

Returns the content of a resource

get_meta_data(self, *args, **kwargs)

Returns the meta data of a resource

info(self, collection_name, resource_name)

Returns a StorageResourceInfo instance.

ls(self, collection_name_or_id, ext=None)

Returns existing members as a dictionnary of the form members[resource_name] = StorageResourceInfo instance.

persist(self, *args, **kwargs)

Persist the operations made

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

shutdown(self)

Shutdown the undrelying storage connections

Generated by Epydoc 2.1 on Thu Jul 19 15:32:17 2007 http://epydoc.sf.net