equal
deleted
inserted
replaced
616 except Exception: |
616 except Exception: |
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 _wampconf = WC.LoadWampClientConf(wampconf) |
621 WC.SetServer(pyroserver, wampconf, wampsecret) |
|
622 _wampconf = WC.LoadWampClientConf() |
622 if _wampconf: |
623 if _wampconf: |
623 WC.SetServer(pyroserver, wampconf, wampsecret) |
|
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.")) |
628 else: |
628 else: |