diff frontends/wix/main_window.py @ 103:6be927a465ed

XMLUI refactoring, step 1
author Goffi <goffi@goffi.org>
date Wed, 23 Jun 2010 00:23:26 +0800
parents 94011f553cd0
children d2630fba8dfd
line wrap: on
line diff
--- a/frontends/wix/main_window.py	Tue Jun 22 13:58:53 2010 +0800
+++ b/frontends/wix/main_window.py	Wed Jun 23 00:23:26 2010 +0800
@@ -27,7 +27,7 @@
 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 @@
                                   )
             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):