plugins/python/modules/svgui/pyjs/jsonrpc/web2py/jsonrpc.py
author laurent
Tue, 21 Feb 2012 22:36:35 +0100
changeset 694 fb55fbee202c
parent 371 b7cb57a2da08
permissions -rw-r--r--
Inverting order of plugin calls in retrieve and publish
from pyjs.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