equal
deleted
inserted
replaced
51 confnodesroot.logger.write(_("PYRO connecting to URI : %s\n") % uri) |
51 confnodesroot.logger.write(_("PYRO connecting to URI : %s\n") % uri) |
52 |
52 |
53 servicetype, location = uri.split("://") |
53 servicetype, location = uri.split("://") |
54 if servicetype == "PYROS": |
54 if servicetype == "PYROS": |
55 import connectors.PYRO.PSK_Adapter |
55 import connectors.PYRO.PSK_Adapter |
56 schemename = "PYROPSK" |
56 schemename = "PYROLOCPSK" |
57 url, ID = location.split('#') |
57 url, ID = location.split('#') |
58 # load PSK from project |
58 # load PSK from project |
59 secpath = os.path.join(str(confnodesroot.ProjectPath), 'psk', ID+'.secret') |
59 secpath = os.path.join(str(confnodesroot.ProjectPath), 'psk', ID+'.secret') |
60 if not os.path.exists(secpath): |
60 if not os.path.exists(secpath): |
61 confnodesroot.logger.write_error( |
61 confnodesroot.logger.write_error( |