Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged

I want to locally override _response method of class JsonRPCDispatcher in http.py.

​class JsonRPCDispatcher(Dispatcher):
​routing_type = 'json'

​def _response(self, result=None, error=None):
​response = {'jsonrpc': '2.0', 'id': self.request_id}
​if error is not None:
​response['error'] = error
​if result is not None:
​response['result'] = result

​return self.request.make_json_response(response)

I want to replace the whole method locally. How to do this?​

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
lis 23
4242
0
dub 17
3053
2
srp 23
4066
2
čvc 22
6474
1
bře 15
272