Mercurial > libervia-backend
comparison frontends/src/wix/xmlui.py @ 1088:b29452cab50b
core, memory, plugins, stdui, frontends: look for DNS SRV records when server is not specified:
- fix bug 3
- modify "Connection" params:
- rename "Server" to "Force server" and "Port" to "Force port"
- set the default value to empty string for both
author | souliane <souliane@mailoo.org> |
---|---|
date | Mon, 23 Jun 2014 00:44:10 +0200 |
parents | 7a39ae3950f7 |
children | 8e0072754413 |
comparison
equal
deleted
inserted
replaced
1087:b3b7a2863060 | 1088:b29452cab50b |
---|---|
318 ### FIXME # Some hacks for better presentation, should be generic # FIXME ### | 318 ### FIXME # Some hacks for better presentation, should be generic # FIXME ### |
319 param_name = ctrl._xmlui_name.split(Const.SAT_PARAM_SEPARATOR)[1] | 319 param_name = ctrl._xmlui_name.split(Const.SAT_PARAM_SEPARATOR)[1] |
320 if (ctrl._param_category, param_name) == ('Connection', 'JabberID'): | 320 if (ctrl._param_category, param_name) == ('Connection', 'JabberID'): |
321 domain = JID(ctrl._xmluiGetValue()).domain | 321 domain = JID(ctrl._xmluiGetValue()).domain |
322 for widget in (ctl['control'] for ctl in self.ctrl_list.values()): | 322 for widget in (ctl['control'] for ctl in self.ctrl_list.values()): |
323 if (widget._param_category, widget._param_name) == ('Connection', 'Server'): | 323 if (widget._param_category, widget._param_name) == ('Connection', C.FORCE_SERVER_PARAM): |
324 widget.SetValue(domain) | 324 widget.SetValue(domain) |
325 break | 325 break |
326 | 326 |
327 def onFormSubmitted(self, event): | 327 def onFormSubmitted(self, event): |
328 """Called when submit button is clicked""" | 328 """Called when submit button is clicked""" |