#NEWLINE# def get_all_buckets( self , headers = None , callback = None ) : #NEWLINE# #INDENT# def got_all_buckets( response ) : #NEWLINE# #INDENT# body = response . read ( ) #NEWLINE# if ( response . status > 300 ) : #NEWLINE# #INDENT# raise self . provider . storage_response_error ( response . status , response . reason , body ) #NEWLINE# #UNINDENT# rs = ResultSet ( [ ( 'Bucket' , self . bucket_class ) ] ) #NEWLINE# h = handler . XmlHandler ( rs , self ) #NEWLINE# xml . sax . parseString ( body , h ) #NEWLINE# if callable ( callback ) : #NEWLINE# #INDENT# callback ( rs ) #NEWLINE# #UNINDENT# #UNINDENT# self . make_request ( 'GET' , headers = headers , callback = got_all_buckets )