core (xmlui), frontends: handling of "text" type in params xml + bug fixes
This commit is contained in:
parent
b2f32986be
commit
8f0cf4697b
1 changed files with 9 additions and 7 deletions
|
|
@ -24,6 +24,7 @@ import wx
|
|||
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 @@ class XMLUI(xmlui.XMLUI, wx.Frame):
|
|||
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'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue