equal
deleted
inserted
replaced
88 debug = False, |
88 debug = False, |
89 debug_wamp = False) |
89 debug_wamp = False) |
90 |
90 |
91 # start the client from a Twisted endpoint |
91 # start the client from a Twisted endpoint |
92 conn = connectWS(transport_factory) |
92 conn = connectWS(transport_factory) |
93 confnodesroot.logger.write(_("WAMP connecting to URL : %s\n")%url) |
93 confnodesroot.logger.write(_("WAMP connecting to URL : %s\n") % url) |
94 return conn |
94 return conn |
95 |
95 |
96 AddToDoBeforeQuit = confnodesroot.AppFrame.AddToDoBeforeQuit |
96 AddToDoBeforeQuit = confnodesroot.AppFrame.AddToDoBeforeQuit |
97 def ThreadProc(): |
97 def ThreadProc(): |
98 global _WampConnection |
98 global _WampConnection |
147 |
147 |
148 # Try to get the proxy object |
148 # Try to get the proxy object |
149 try : |
149 try : |
150 return WampPLCObjectProxy() |
150 return WampPLCObjectProxy() |
151 except Exception, msg: |
151 except Exception, msg: |
152 confnodesroot.logger.write_error(_("WAMP connection to '%s' failed.\n")%location) |
152 confnodesroot.logger.write_error(_("WAMP connection to '%s' failed.\n") % location) |
153 confnodesroot.logger.write_error(traceback.format_exc()) |
153 confnodesroot.logger.write_error(traceback.format_exc()) |
154 return None |
154 return None |
155 |
155 |
156 |
156 |
157 |
157 |