12 |
12 |
13 Schemes = ["WAMP", "WAMPS"] |
13 Schemes = ["WAMP", "WAMPS"] |
14 |
14 |
15 model = [('host',_("Host:")), |
15 model = [('host',_("Host:")), |
16 ('port',_("Port:")), |
16 ('port',_("Port:")), |
17 ('realm',_("Realm:")), |
17 ('realm',_("Realm:"))] |
18 ('ID',_("ID:"))] |
|
19 |
18 |
20 class WAMP_dialog(SchemeEditor): |
19 class WAMP_dialog(SchemeEditor): |
21 def __init__(self, *args, **kwargs): |
20 def __init__(self, *args, **kwargs): |
22 self.model = model |
21 self.model = model |
|
22 self.EnableIDSelector = True |
23 SchemeEditor.__init__(self, *args, **kwargs) |
23 SchemeEditor.__init__(self, *args, **kwargs) |
24 |
24 |
25 def SetLoc(self, loc): |
25 def SetLoc(self, loc): |
26 hostport, realm, ID = list(islice(chain(loc.split("#"), repeat("")),3)) |
26 hostport, realm, ID = list(islice(chain(loc.split("#"), repeat("")),3)) |
27 host, port = list(islice(chain(hostport.split(":"), repeat("")),2)) |
27 host, port = list(islice(chain(hostport.split(":"), repeat("")),2)) |