XMLUI refactoring, step 1

This commit is contained in:
Goffi 2010-06-23 00:23:26 +08:00
commit eaeb313e54

View file

@ -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):