svgui/pyjs/jsonrpc/web2py/jsonrpc.py
author Edouard Tisserant
Thu, 21 Mar 2019 13:10:49 +0100
branchsearch_in_CTN
changeset 2526 450c6239ee75
parent 1881 091005ec69c4
permissions -rw-r--r--
WIP adding searching capabilities in python files. was done :
- fixed highlighting search result in text body of CTN code editor.
# 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