#NEWLINE# def execute( self , payload ) : #NEWLINE# #INDENT# ' Execute RPC ' #NEWLINE# rpc = ET . fromstring ( payload ) #NEWLINE# logging . debug ( ( 'SEND: \n========\n%s\n========\n' % ET . tostring ( rpc , pretty_print = True ) ) ) #NEWLINE# for action in action : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# reply = self . handle . dispatch ( action ) #NEWLINE# #UNINDENT# except RPCError as e : #NEWLINE# #INDENT# reply = e . info #NEWLINE# #UNINDENT# #UNINDENT# return str ( reply )