diff frontends/src/wix/xmlui.py @ 865:3ee2ec7ec010

core (xmlui), frontends: handling of "text" type in params xml + bug fixes
author Goffi <goffi@goffi.org>
date Tue, 25 Feb 2014 23:01:26 +0100
parents 1fe00f0c9a91
children 75f3b3b430ff
line wrap: on
line diff
--- a/frontends/src/wix/xmlui.py	Tue Feb 25 10:59:05 2014 +0100
+++ b/frontends/src/wix/xmlui.py	Tue Feb 25 23:01:26 2014 +0100
@@ -24,6 +24,7 @@
 from logging import debug, info, warning, error
 from sat.tools.jid  import JID
 from sat_frontends.tools import xmlui
+from sat_frontends.constants import Const
 
 
 class EventWidget(object):
@@ -280,7 +281,8 @@
     def onParamChange(self, ctrl):
         super(XMLUI, self).onParamChange(ctrl)
         ### FIXME # Some hacks for better presentation, should be generic # FIXME ###
-        if (ctrl._param_category, ctrl._param_name) == ('Connection', 'JabberID'):
+        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', 'Server'):