beremiz
Clone
Summary
Browse
Changes
Graph
Fixing python plugin function block code to follow new macros defined in matiec accessor.h for setting variables
2011-11-18, laurent
865c7c60a1f3
Fixing python plugin function block code to follow new macros defined in matiec accessor.h for setting variables
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