Merge remote branch 'jwandborg/f519_cloudfiles_performance_fix'
This commit is contained in:
commit
1024d60208
@ -254,6 +254,8 @@ class CloudFilesStorage(StorageInterface):
|
|||||||
self.container = self.connection.get_container(
|
self.container = self.connection.get_container(
|
||||||
self.param_container)
|
self.param_container)
|
||||||
|
|
||||||
|
self.container_uri = self.container.public_uri()
|
||||||
|
|
||||||
def _resolve_filepath(self, filepath):
|
def _resolve_filepath(self, filepath):
|
||||||
return '/'.join(
|
return '/'.join(
|
||||||
clean_listy_filepath(filepath))
|
clean_listy_filepath(filepath))
|
||||||
@ -282,7 +284,9 @@ class CloudFilesStorage(StorageInterface):
|
|||||||
self.container.delete_object(filepath)
|
self.container.delete_object(filepath)
|
||||||
|
|
||||||
def file_url(self, filepath):
|
def file_url(self, filepath):
|
||||||
return self.get_file(filepath).public_uri()
|
return '/'.join([
|
||||||
|
self.container_uri,
|
||||||
|
self._resolve_filepath(filepath)])
|
||||||
|
|
||||||
|
|
||||||
class MountStorage(StorageInterface):
|
class MountStorage(StorageInterface):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user