#NEWLINE# def request( self , action , params = None , data = '' , headers = None , method = 'GET' ) : #NEWLINE# #INDENT# if ( not headers ) : #NEWLINE# #INDENT# headers = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# if ( not params ) : #NEWLINE# #INDENT# params = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# if self . server_url : #NEWLINE# #INDENT# action = ( self . server_url + action ) #NEWLINE# #UNINDENT# if ( method in ( 'POST' , 'PUT' ) ) : #NEWLINE# #INDENT# headers = { #NEWLINE# #INDENT# 'Content-Type' : 'application/xml; charset=UTF-8' , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# if ( method == 'GET' ) : #NEWLINE# #INDENT# params [ 'cache-busting' ] = os . urandom ( 8 ) . encode ( 'hex' ) #NEWLINE# #UNINDENT# return super ( RackspaceConnection , self ) . request ( action = action , params = params , data = data , method = method , headers = headers )