equal
deleted
inserted
replaced
618 |
618 |
619 if wampconf is not None: |
619 if wampconf is not None: |
620 try: |
620 try: |
621 _wampconf = WC.LoadWampClientConf(wampconf) |
621 _wampconf = WC.LoadWampClientConf(wampconf) |
622 if _wampconf: |
622 if _wampconf: |
623 if _wampconf["url"]: # TODO : test more ? |
623 WC.SetServer(pyroserver) |
|
624 if _wampconf.get("url", None): # TODO : test more ? |
624 WC.RegisterWampClient(wampconf, wampsecret) |
625 WC.RegisterWampClient(wampconf, wampsecret) |
625 pyruntimevars["wampsession"] = WC.GetSession |
|
626 WC.SetServer(pyroserver) |
|
627 else: |
626 else: |
628 raise Exception(_("WAMP config is incomplete.")) |
627 raise Exception(_("WAMP config is incomplete.")) |
629 else: |
628 else: |
630 raise Exception(_("WAMP config is missing.")) |
629 raise Exception(_("WAMP config is missing.")) |
631 except Exception: |
630 except Exception: |