#NEWLINE# def get_params( self ) : #NEWLINE# #INDENT# "\n        Returns a list of dictionaries containing name and type of the params\n        \n        eg. [{'name': 'arg1', 'rpctype': 'int'}, \n             {'name': 'arg2', 'rpctype': 'int'}]\n        " #NEWLINE# if ( len ( self . signature ) > 0 ) : #NEWLINE# #INDENT# arglist = [ ] #NEWLINE# if ( len ( self . signature ) == ( len ( self . args ) + 1 ) ) : #NEWLINE# #INDENT# for argnum in range ( len ( self . args ) ) : #NEWLINE# #INDENT# arglist . append ( { #NEWLINE# #INDENT# 'name' : self . args [ argnum ] , #NEWLINE# 'rpctype' : self . signature [ ( argnum + 1 ) ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# return arglist #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# for argnum in range ( len ( self . args ) ) : #NEWLINE# #INDENT# arglist . append ( { #NEWLINE# #INDENT# 'name' : self . args [ argnum ] , #NEWLINE# 'rpctype' : 'object' , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# return arglist #NEWLINE# #UNINDENT# #UNINDENT# return [ ]