diff frontends/wix/form.py @ 37:a61beb21d16d

Gateway registration, unregistration & edition - default values added in form - DBus bridge: fixed array of struct management when adding dynamically a method - fixed doc for some methods - ugly fix for presence status - added dependency for XEP-0077 in XEP-0100 plugin - Wix: added unregister button in gateways manager - Wix: added privacy warning in gateways manager
author Goffi <goffi@goffi.org>
date Tue, 15 Dec 2009 01:27:32 +1100
parents 6491b7956c80
children a5b5fb5fc9fd
line wrap: on
line diff
--- a/frontends/wix/form.py	Mon Dec 14 02:11:05 2009 +1100
+++ b/frontends/wix/form.py	Tue Dec 15 01:27:32 2009 +1100
@@ -103,23 +103,21 @@
         for ctrl in self.ctl_list:
             data.append((ctrl["name"], ctrl["control"].GetValue()))
         print "submitting:",data
-        id = self.host.bridge.submitForm(self.target, data)
+        id = self.host.bridge.gatewayRegister("SUBMIT",self.target, data)
         self.host.current_action_ids.add(id)
         print "action id:",id
-        event.Skip()
+        self.MakeModal(False)
+        self.Destroy()
         
     def onFormCancelled(self, event):
         """Called when cancel button is clicked"""
         debug("Cancelling form")
-        #id = self.host.bridge.submitForm("button", data)
-        #self.host.current_action_ids.add(id)
-        #print "action id:",id
-        event.Skip()
+        self.MakeModal(False)
+        self.Close()
    
     def onClose(self, event):
         """Close event: we have to send the form."""
         debug("close")
-
         self.MakeModal(False)
         event.Skip()