Fixed leftover typo
authorEdouard Tisserant
Sat, 14 Mar 2015 11:32:23 +0100
changeset 1458 5c87045af670
parent 1457 ff7cfce737ca
child 1459 c9065fb5de0a
Fixed leftover typo
Beremiz_service.py
--- a/Beremiz_service.py	Fri Mar 13 22:36:52 2015 +0100
+++ b/Beremiz_service.py	Sat Mar 14 11:32:23 2015 +0100
@@ -354,7 +354,7 @@
     def __init__(self, servicename, ip_addr, port,
                  workdir, argv, autostart=False,
                  statuschange=None, evaluator=default_evaluator,
-                 website=None):
+                 pyruntimevars=None):
         self.continueloop = True
         self.daemon = None
         self.servicename = servicename
@@ -367,7 +367,7 @@
         self.autostart = autostart
         self.statuschange = statuschange
         self.evaluator = evaluator
-        self.website = website
+        self.pyruntimevars = pyruntimevars
 
     def Loop(self):
         while self.continueloop:
@@ -387,7 +387,7 @@
         self.daemon=pyro.Daemon(host=self.ip_addr, port=self.port)
         self.plcobj = PLCObject(self.workdir, self.daemon, self.argv,
                                 self.statuschange, self.evaluator,
-                                self.website)
+                                self.pyruntimevars)
         uri = self.daemon.connect(self.plcobj,"PLCObject")
 
         print "Pyro port :",self.port