#NEWLINE# def register_method( self , method , name = None , signature = None , helpmsg = None ) : #NEWLINE# #INDENT# '\n        Registers a method with the rpc server\n        ' #NEWLINE# meth = RPCMethod ( method , name , signature , helpmsg ) #NEWLINE# if ( meth . name not in self . system_listmethods ( ) ) : #NEWLINE# #INDENT# self . xmlrpcdispatcher . register_function ( meth , meth . name ) #NEWLINE# self . jsonrpcdispatcher . register_function ( method , meth . name ) #NEWLINE# self . rpcmethods . append ( meth )