--- a/Beremiz.py Fri Aug 22 15:30:09 2008 +0200
+++ b/Beremiz.py Fri Aug 22 15:35:11 2008 +0200
@@ -360,8 +360,6 @@
self.Log = LogPseudoFile(self.LogConsole)
-# self.local_runtime = ProcessLogger(self.Log,
-# "bash -c 'while true; do echo coucou; sleep 1; done'")
self.local_runtime_tmpdir = tempfile.mkdtemp()
self.local_runtime = ProcessLogger(self.Log,
"%s %s -i localhost %s"%(sys.executable,
--- a/connectors/PYRO/__init__.py Fri Aug 22 15:30:09 2008 +0200
+++ b/connectors/PYRO/__init__.py Fri Aug 22 15:35:11 2008 +0200
@@ -44,7 +44,7 @@
A function that catch a pyro exceptions, write error to logger
and return defaul value when it happen
"""
- def cather_func(*args,**kwargs):
+ def catcher_func(*args,**kwargs):
try:
return func(*args,**kwargs)
except PyroError,e:
@@ -52,7 +52,7 @@
pluginsroot.logger.write_error(str(e))
pluginsroot._Disconnect()
return default
- return cather_func
+ return catcher_func
# Check connection is effective.
# lambda is for getattr of GetPLCstatus to happen inside catcher