@@ -342,9 +342,9 @@ def upload_from_string(self, data, content_type='text/plain'):
342342 """
343343 string_buffer = StringIO ()
344344 string_buffer .write (data )
345- self .set_contents_from_file (file_obj = string_buffer , rewind = True ,
346- size = string_buffer .len ,
347- content_type = content_type )
345+ self .upload_from_file (file_obj = string_buffer , rewind = True ,
346+ size = string_buffer .len ,
347+ content_type = content_type )
348348 return self
349349
350350 # NOTE: Alias for boto-like API.
@@ -369,10 +369,11 @@ class _KeyIterator(Iterator):
369369 :type bucket: :class:`gcloud.storage.bucket.Bucket`
370370 :param bucket: The bucket from which to list keys.
371371 """
372- def __init__ (self , bucket ):
372+ def __init__ (self , bucket , extra_params = None ):
373373 self .bucket = bucket
374374 super (_KeyIterator , self ).__init__ (
375- connection = bucket .connection , path = bucket .path + '/o' )
375+ connection = bucket .connection , path = bucket .path + '/o' ,
376+ extra_params = extra_params )
376377
377378 def get_items_from_response (self , response ):
378379 """Factory method, yields :class:`.storage.key.Key` items from response.
0 commit comments