Package expedient :: Package common :: Package rpc4django :: Module rpcdispatcher :: Class RPCMethod
[hide private]
[frames] | no frames]

Class RPCMethod

source code

A method available via the rpc dispatcher

Instance Methods [hide private]
 
__init__(self, method, name=None, signature=None, docstring=None) source code
 
get_stub(self)
Returns a stub json for an jsonrpc request for this method
source code
 
get_returnvalue(self)
Returns the return value which is the first element of the signature
source code
 
get_params(self)
Returns a list of dictionaries containing name and type of the params
source code
Method Details [hide private]

get_params(self)

source code 

Returns a list of dictionaries containing name and type of the params

eg. [{'name': 'arg1', 'rpctype': 'int'}, 
     {'name': 'arg2', 'rpctype': 'int'}]