beremiz
Clone
Summary
Browse
Changes
Graph
Adding support for command line communication by socket instead of stdin/stdout
2010-06-04, laurent
d18e86b603bc
Adding support for command line communication by socket instead of stdin/stdout
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