Package Camelot :: Package camelot :: Package core :: Package files :: Module storage :: Class S3Storage |
[frames] | no frames]

# Class S3Storage

source code

Helper class that opens and saves StoredFile objects into Amazon S3.

these attibutes need to be set in your settings for S3Storage to work :
  - AWS_ACCESS_KEY_ID = '<INSERT YOUR AWS ACCESS KEY ID HERE>'
  - AWS_SECRET_ACCESS_KEY = '<INSERT YOUR AWS SECRET ACCESS KEY HERE>'
  - AWS_BUCKET_NAME = 'camelot'
  - AWS_LOCATION = S3.Location.DEFAULT

Using this Storage requires the availability of S3.py on your PYTHONPATH. S3.py can be found on the amazon.com website

Instance Methods
__init__(self, upload_to=`'````'`, stored_file_implementation=<class 'Camelot.camelot.core.files.storage.StoredFile'>) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code
Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Properties
Inherited from `object`: `__class__`

Method Details

### __init__(self, upload_to=`'````'`, stored_file_implementation=<class 'Camelot.camelot.core.files.storage.StoredFile'>) (Constructor) | source code
x.__init__(...) initializes x; see x.__class__.__doc__ for signature Overrides: object.__init__ (inherited documentation)