diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-11-20 22:02:02 -0600 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-11-20 22:02:02 -0600 |
commit | 2e8fbc8fab47930f1de7e20e0072eaefafc898a6 (patch) | |
tree | ca04f14c24509efdf1e7f3943d23fa436b5649a1 /mediagoblin/storage | |
parent | 98f6efb06898dc86398a742bddbf3a06e63355d7 (diff) | |
download | mediagoblin-2e8fbc8fab47930f1de7e20e0072eaefafc898a6.tar.lz mediagoblin-2e8fbc8fab47930f1de7e20e0072eaefafc898a6.tar.xz mediagoblin-2e8fbc8fab47930f1de7e20e0072eaefafc898a6.zip |
Slightly clearer docs on copy_local_to_storage
Diffstat (limited to 'mediagoblin/storage')
-rw-r--r-- | mediagoblin/storage/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mediagoblin/storage/__init__.py b/mediagoblin/storage/__init__.py index b76e18af..0840614b 100644 --- a/mediagoblin/storage/__init__.py +++ b/mediagoblin/storage/__init__.py @@ -172,6 +172,10 @@ class StorageInterface(object): def copy_local_to_storage(self, filename, filepath): """ Copy this file from locally to the storage system. + + This is kind of the opposite of copy_locally. It's likely you + could override this method with something more appropriate to + your storage system. """ with self.get_file(filepath, 'wb') as dest_file: with file(filename, 'rb') as source_file: |