except cloudfiles.errors.NoSuchObject:
return False
- def get_file(self, filepath, *args):
+ def get_file(self, filepath, *args, **kwargs):
"""
- Doesn't care about the "mode" argument
"""
if mimetype:
obj.content_type = mimetype[0]
- return self.StorageObjectWrapper(obj)
+ return StorageObjectWrapper(obj, *args, **kwargs)
def delete_file(self, filepath):
# TODO: Also delete unused directories if empty (safely, with
This wrapper currently meets mediagoblin's needs for a public_store
file-like object.
"""
- def __init__(self, storage_object):
+ def __init__(self, storage_object, *args, **kwargs):
self.storage_object = storage_object
def read(self, *args, **kwargs):