XMLUI refactoring, step 1
This commit is contained in:
parent
2f2594de6b
commit
eaeb313e54
1 changed files with 220 additions and 73 deletions
|
|
@ -27,7 +27,7 @@ import wx
|
|||
from contact_list import ContactList
|
||||
from chat import Chat
|
||||
from param import Param
|
||||
from form import Form
|
||||
from xmlui import XMLUI
|
||||
from gateways import GatewaysManager
|
||||
from profile import Profile
|
||||
from profile_manager import ProfileManager
|
||||
|
|
@ -293,17 +293,17 @@ class MainWindow(wx.Frame, QuickApp):
|
|||
)
|
||||
dlg.ShowModal()
|
||||
dlg.Destroy()
|
||||
elif type == "FORM":
|
||||
elif type == "XMLUI":
|
||||
self.current_action_ids.remove(id)
|
||||
debug (_("Form received"))
|
||||
debug (_("XML user interface received"))
|
||||
misc = {}
|
||||
#FIXME FIXME FIXME: must clean all this crap !
|
||||
title = _('Form')
|
||||
if data['type'] == _('registration'):
|
||||
title = 'Registration'
|
||||
title = _('Registration')
|
||||
misc['target'] = data['target']
|
||||
misc['action_back'] = self.bridge.gatewayRegister
|
||||
form=Form(self, title=title, xml_data = data['xml'], misc = misc)
|
||||
XMLUI(self, title=title, xml_data = data['xml'], misc = misc)
|
||||
elif type == "RESULT":
|
||||
self.current_action_ids.remove(id)
|
||||
if self.current_action_ids_cb.has_key(id):
|
||||
|
|
|
|||
Loading…
Reference in a new issue