Changes between Version 1 and Version 2 of Simplistic_json_rpc-dispatcher


Ignore:
Timestamp:
09/15/2009 10:24:56 AM (6 years ago)
Author:
floydpetrus
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Simplistic_json_rpc-dispatcher

    v1 v2  
    1212      rpc_inputs = jsonrpc.json.loads(object.raw_post_data)
    1313      sub_eval = str(rpc_inputs['method']) + '(rpc_inputs[\'params\'])'
    14       if rpc_inputs['method'] in methods
     14      if rpc_inputs['method'] in methods:
    1515         result = eval(sub_eval)
    1616         json_retur = jsonrpc.json.dumps({'result': result['result'], 'error': result['error'], 'id': rpc_inputs['id']})
Back to Top