From: Christopher Allan Webber Date: Mon, 21 Nov 2011 04:02:02 +0000 (-0600) Subject: Slightly clearer docs on copy_local_to_storage X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2e8fbc8fab47930f1de7e20e0072eaefafc898a6;p=mediagoblin.git Slightly clearer docs on copy_local_to_storage --- 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: