@@ -337,9 +337,9 @@ def upload_from_string(self, data, content_type='text/plain'):
337337 """
338338 string_buffer = StringIO ()
339339 string_buffer .write (data )
340- self .set_contents_from_file (file_obj = string_buffer , rewind = True ,
341- size = string_buffer .len ,
342- content_type = content_type )
340+ self .upload_from_file (file_obj = string_buffer , rewind = True ,
341+ size = string_buffer .len ,
342+ content_type = content_type )
343343 return self
344344
345345 # NOTE: Alias for boto-like API.
@@ -452,10 +452,11 @@ class _KeyIterator(Iterator):
452452 :type bucket: :class:`gcloud.storage.bucket.Bucket`
453453 :param bucket: The bucket from which to list keys.
454454 """
455- def __init__ (self , bucket ):
455+ def __init__ (self , bucket , extra_params = None ):
456456 self .bucket = bucket
457457 super (_KeyIterator , self ).__init__ (
458- connection = bucket .connection , path = bucket .path + '/o' )
458+ connection = bucket .connection , path = bucket .path + '/o' ,
459+ extra_params = extra_params )
459460
460461 def get_items_from_response (self , response ):
461462 """Factory method, yields :class:`.storage.key.Key` items from response.
0 commit comments