| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
Storage --+
|
S3Storage
|
|||
|
__init__(self,
aws_access_key_id,
aws_secret_access_key,
unique_prefix) Amazon S3 storage for amplee. |
||
|
shutdown(self) Does nothing effectively. |
||
|
__bn(self,
value) ... |
||
|
create_container(self,
collection_name) ... |
||
|
path(self,
*args,
**kwargs) Returns a KeyWrapper instance. |
||
|
get_content(self,
path) ... |
||
|
get_meta_data(self,
path) ... |
||
|
put_content(self,
path,
content,
media_type=None,
*args,
**kwargs) ... |
||
|
put_meta_data(self,
path,
content,
media_type=None,
*args,
**kwargs) ... |
||
|
remove_content(self,
path) ... |
||
|
remove_meta_data(self,
path) ... |
||
|
persist(self,
path_list,
msg=None) ... |
||
|
exists(self,
path) ... |
||
|
ls(self,
collection_name,
ext) ... |
||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Amazon S3 storage for amplee. http://www.amazon.com/gp/browse.html?node=16427261 If the buck does not exist this storage will create it transparently. Keyword arguments aws_access_key_id -- Amazon S3 publick key aws_secret_access_key -- Amazon S3 private key unique_prefix -- Unique prefix used for the creation of buckets Set it to something really unique and not None!
|
Does nothing effectively.
|
Constructs the bucket name |
Creates and returns a boto bucket instance for that collection name prefixed by self.unique_prefix
|
Returns a KeyWrapper instance. You must provided at least two non keyword arguments: the collection name and the resource name
|
Returns the content of the resource at 'path' as a string Keyword argument: path -- a Key or KeyWrapper instance
|
Returns the content of the resource at 'path' as a string Keyword argument: path -- a Key or KeyWrapper instance
|
Updates the content of the resource at 'path' Keyword argument: path -- a KeyWrapper instance content -- content as a string to be persisted into the bucket media_type -- mime type of the resource (default:None)
|
Updates the content of the resource at 'path' Keyword argument: path -- a KeyWrapper instance content -- content as a string to be persisted into the bucket media_type -- mime type of the resource (default:None)
|
Removes the resource at 'path' Keyword argument: path -- a Key or KeyWrapper instance
|
Removes the resource at 'path' Keyword argument: path -- a Key or KeyWrapper instance
|
Does nothing
|
Returns True if the resource 'path' exists in the bucket
|
Returns a dictionary of the form {resource_name: {'path': KeyWrapper}}
Keyword argument:
collection_name -- the name of the collection to browse
ext -- extension to filter through
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0alpha3 on Sat Nov 18 23:31:58 2006 | http://epydoc.sourceforge.net |