diff -r d2e979738700 -r ec153828ded2 connectors/WAMP/__init__.py --- a/connectors/WAMP/__init__.py Mon Aug 14 23:38:28 2017 +0300 +++ b/connectors/WAMP/__init__.py Tue Aug 15 12:17:51 2017 +0300 @@ -52,10 +52,10 @@ _WampSession = None print 'WAMP session left' -PLCObjDefaults = { "StartPLC": False, - "GetTraceVariables" : ("Broken",None), - "GetPLCstatus" : ("Broken",None), - "RemoteExec" : (-1, "RemoteExec script failed!")} +PLCObjDefaults = { "StartPLC": False, + "GetTraceVariables": ("Broken", None), + "GetPLCstatus": ("Broken", None), + "RemoteExec": (-1, "RemoteExec script failed!")} def WAMP_connector_factory(uri, confnodesroot): @@ -106,7 +106,7 @@ wampfuncname = '.'.join((ID,funcname)) def catcher_func(*args,**kwargs): global _WampSession - if _WampSession is not None : + if _WampSession is not None: try: return threads.blockingCallFromThread( reactor, _WampSession.call, wampfuncname, @@ -148,7 +148,7 @@ return member # Try to get the proxy object - try : + try: return WampPLCObjectProxy() except Exception, msg: confnodesroot.logger.write_error(_("WAMP connection to '%s' failed.\n") % location)