comparison frontends/wix/main_window.py @ 35:c45deebb40a5

Wix: Registration form management (not finished yet) - impoved xml conversion in xml_tools
author Goffi <goffi@goffi.org>
date Sun, 13 Dec 2009 20:24:48 +1100
parents b9bb5d8e0cc7
children 6491b7956c80
comparison
equal deleted inserted replaced
34:a544b376b6f0 35:c45deebb40a5
21 21
22 22
23 import wx 23 import wx
24 from chat import Chat 24 from chat import Chat
25 from param import Param 25 from param import Param
26 from form import Form
26 from gateways import GatewaysManager 27 from gateways import GatewaysManager
27 import gobject 28 import gobject
28 import os.path 29 import os.path
29 import pdb 30 import pdb
30 from tools.jid import JID 31 from tools.jid import JID
327 ) 328 )
328 dlg.ShowModal() 329 dlg.ShowModal()
329 dlg.Destroy() 330 dlg.Destroy()
330 elif type == "FORM": 331 elif type == "FORM":
331 self.current_action_ids.remove(id) 332 self.current_action_ids.remove(id)
332 info ("Form received !") 333 debug ("Form received")
334 form=Form(self, title='Registration', type = data['type'], xml_data = data['xml'])
333 elif type == "DICT_DICT": 335 elif type == "DICT_DICT":
334 self.current_action_ids.remove(id) 336 self.current_action_ids.remove(id)
335 if self.current_action_ids_cb.has_key(id): 337 if self.current_action_ids_cb.has_key(id):
336 callback = self.current_action_ids_cb[id] 338 callback = self.current_action_ids_cb[id]
337 del self.current_action_ids_cb[id] 339 del self.current_action_ids_cb[id]