beremiz
Clone
Summary
Browse
Changes
Graph
Added stub code and declarations for bidirectional access to PLC globals from python code (untested)
2013-05-15, Edouard Tisserant
21475ee0e688
Added stub code and declarations for bidirectional access to PLC globals from python code (untested)
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