Changes between Version 7 and Version 8 of Simplistic_json_rpc-dispatcher
- Timestamp:
- Nov 24, 2009, 5:02:29 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Simplistic_json_rpc-dispatcher
v7 v8 11 11 def JSON_RPC_dispatcher(obj): 12 12 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"])' 14 14 if rpc_inputs['method'] in jsonrpc_methods: 15 15 result = eval(sub_eval)