Slightly clearer docs on copy_local_to_storage
authorChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 21 Nov 2011 04:02:02 +0000 (22:02 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 21 Nov 2011 04:02:02 +0000 (22:02 -0600)
mediagoblin/storage/__init__.py

index b76e18af9732defda8a2daf4ac7dbe7e10f6e4f4..0840614be87f96728fdb2c8967a65f328e45c101 100644 (file)
@@ -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: