Changes between Version 7 and Version 8 of Simplistic_json_rpc-dispatcher


Ignore:
Timestamp:
Nov 24, 2009, 5:02:29 PM (15 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Simplistic_json_rpc-dispatcher

    v7 v8  
    1111def JSON_RPC_dispatcher(obj):
    1212      rpc_inputs = json.loads(obj.raw_post_data)
    13       sub_eval = str(rpc_inputs['method']) + '(rpc_inputs[\'params\'])'
     13      sub_eval = str(rpc_inputs['method']) + '(rpc_inputs["params"])'
    1414      if rpc_inputs['method'] in jsonrpc_methods:
    1515         result = eval(sub_eval)
Back to Top