Mercurial > libervia-backend
diff frontends/src/wix/xmlui.py @ 1089:8e0072754413
core, plugins, stdui, frontends: fixes handling of "Force server" and "Force port" parameters:
- do not save a "guessed" value, they must stay empty until the user explicitely sets them
- add constant XMPP_C2S_PORT (default value 5222)
author | souliane <souliane@mailoo.org> |
---|---|
date | Mon, 23 Jun 2014 10:23:13 +0200 |
parents | b29452cab50b |
children | e2e1e27a3680 |
line wrap: on
line diff
--- a/frontends/src/wix/xmlui.py Mon Jun 23 00:44:10 2014 +0200 +++ b/frontends/src/wix/xmlui.py Mon Jun 23 10:23:13 2014 +0200 @@ -315,14 +315,6 @@ def onParamChange(self, ctrl): super(XMLUI, self).onParamChange(ctrl) - ### FIXME # Some hacks for better presentation, should be generic # FIXME ### - param_name = ctrl._xmlui_name.split(Const.SAT_PARAM_SEPARATOR)[1] - if (ctrl._param_category, param_name) == ('Connection', 'JabberID'): - domain = JID(ctrl._xmluiGetValue()).domain - for widget in (ctl['control'] for ctl in self.ctrl_list.values()): - if (widget._param_category, widget._param_name) == ('Connection', C.FORCE_SERVER_PARAM): - widget.SetValue(domain) - break def onFormSubmitted(self, event): """Called when submit button is clicked"""