Beremiz_service.py
branch#2486
changeset 2205 4c74218b42e1
parent 2204 25dafeb98b55
child 2211 46447d99e5f9
equal deleted inserted replaced
2204:25dafeb98b55 2205:4c74218b42e1
   617             LogMessageAndException(_("Nevow Web service failed. "))
   617             LogMessageAndException(_("Nevow Web service failed. "))
   618 
   618 
   619     if wampconf is not None:
   619     if wampconf is not None:
   620         try:
   620         try:
   621             WC.SetServer(pyroserver, wampconf, wampsecret)
   621             WC.SetServer(pyroserver, wampconf, wampsecret)
   622             _wampconf = WC.LoadWampClientConf()
   622             _wampconf = WC.GetConfiguration()
   623             if _wampconf:
   623             if _wampconf:
   624                 if _wampconf.get("url", False) and _wampconf.get("active", False):  # TODO : test more ?
   624                 if _wampconf.get("url", False) and _wampconf.get("active", False):  # TODO : test more ?
   625                     WC.RegisterWampClient()
   625                     WC.RegisterWampClient()
   626                 else:
   626                 else:
   627                     raise Exception(_("WAMP config is incomplete or active is false."))
   627                     raise Exception(_("WAMP config is incomplete or active is false."))