Author: tomaz
Date: Sat Apr  9 17:19:05 2011
New Revision: 1090632

URL: http://svn.apache.org/viewvc?rev=1090632&view=rev
Log:
Add explicit notice about S3 and upload_object_via_stream.

Modified:
    incubator/libcloud/trunk/libcloud/storage/drivers/s3.py

Modified: incubator/libcloud/trunk/libcloud/storage/drivers/s3.py
URL: 
http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/storage/drivers/s3.py?rev=1090632&r1=1090631&r2=1090632&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/storage/drivers/s3.py (original)
+++ incubator/libcloud/trunk/libcloud/storage/drivers/s3.py Sat Apr  9 17:19:05 
2011
@@ -268,6 +268,14 @@ class S3StorageDriver(StorageDriver):
                                 file_hash=file_hash,
                                 storage_class=ex_storage_class)
 
+    def upload_object_via_stream(self, iterator, container, object_name,
+                                 extra=None, ex_storage_class=None):
+        # Amazon S3 does not support chunked transfer encoding.
+        # Using multipart upload to "emulate" it would mean unnecessary
+        # buffering of data in memory.
+        raise NotImplementedError(
+            'upload_object_via_stream not implemented for this driver')
+
     def delete_object(self, obj):
         object_name = self._clean_name(name=obj.name)
         response = self.connection.request('/%s/%s' % (obj.container.name,


Reply via email to