#2486 WampClient needs pyro.plcobj before registration calls.
--- a/Beremiz_service.py Wed Apr 11 10:53:48 2018 +0200
+++ b/Beremiz_service.py Wed Apr 18 10:40:16 2018 +0200
@@ -620,10 +620,9 @@
try:
_wampconf = WC.LoadWampClientConf(wampconf)
if _wampconf:
- if _wampconf["url"]: # TODO : test more ?
+ WC.SetServer(pyroserver)
+ if _wampconf.get("url", None): # TODO : test more ?
WC.RegisterWampClient(wampconf, wampsecret)
- pyruntimevars["wampsession"] = WC.GetSession
- WC.SetServer(pyroserver)
else:
raise Exception(_("WAMP config is incomplete."))
else: