beremiz
Clone
Summary
Browse
Changes
Graph
Fixed python global variable declaration example in generated runtime python file
2013-05-09, Laurent Bessard
2fc1eef45bda
Fixed python global variable declaration example in generated runtime python file
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