You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2011/04/11 01:26:04 UTC

svn commit: r1090910 - /incubator/libcloud/trunk/libcloud/storage/drivers/cloudfiles.py

Author: tomaz
Date: Sun Apr 10 23:26:04 2011
New Revision: 1090910

URL: http://svn.apache.org/viewvc?rev=1090910&view=rev
Log:
Fix a bug in CloudFiles driver.

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

Modified: incubator/libcloud/trunk/libcloud/storage/drivers/cloudfiles.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/storage/drivers/cloudfiles.py?rev=1090910&r1=1090909&r2=1090910&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/storage/drivers/cloudfiles.py (original)
+++ incubator/libcloud/trunk/libcloud/storage/drivers/cloudfiles.py Sun Apr 10 23:26:04 2011
@@ -22,7 +22,8 @@ try:
 except:
     import simplejson as json
 
-from libcloud import utils
+from libcloud.utils import fixxpath, findtext, in_development_warning
+from libcloud.utils import read_in_chunks
 from libcloud.common.types import MalformedResponseError, LibcloudError
 from libcloud.common.base import Response
 
@@ -264,7 +265,7 @@ class CloudFilesStorageDriver(StorageDri
                                                        object_name),
                                            method='GET', raw=True)
 
-        return self._get_object(obj=obj, callback=self._get_object_as_stream,
+        return self._get_object(obj=obj, callback=read_in_chunks,
                                 response=response,
                                 callback_kwargs={ 'iterator': response.response,
                                                  'chunk_size': chunk_size},