branch | wxPython4 |
changeset 3328 | 01682a34a558 |
parent 3327 | d753cc166bd0 |
child 3329 | d44b6346d4c2 |
--- a/svgui/pyjs/jsonrpc/web2py/jsonrpc.py Fri Oct 01 17:44:52 2021 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ -# pylint: disable=undefined-variable - -from __future__ import absolute_import -from svgui.pyjs.jsonrpc.jsonrpc import JSONRPCServiceBase - - -class JSONRPCService(JSONRPCServiceBase): - - def serve(self): - return self.process(request.body.read()) - - def __call__(self, func): - self.methods[func.__name__] = func - return func