beremiz
Clone
Summary
Browse
Changes
Graph
fix PLC autostart option for Beremiz_service.py
2016-11-17, Andrey Skvortsov
0925da818853
fix PLC autostart option for Beremiz_service.py
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