beremiz
Clone
Summary
Browse
Changes
Graph
Fixed support for defining python runtime code using sections like in c_ext
2013-05-13, Laurent Bessard
b1705000eba1
Fixed support for defining python runtime code using sections like in c_ext
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