# HG changeset patch # User greg # Date 1219412111 -7200 # Node ID 71fddab24be9ffaf1476720ea7bd45f80d81a483 # Parent f3eb35df4d87b2aad85da44f353dd193ca68d59d remove old code and fix typo diff -r f3eb35df4d87 -r 71fddab24be9 Beremiz.py --- 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, diff -r f3eb35df4d87 -r 71fddab24be9 connectors/PYRO/__init__.py --- 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