Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
36:6491b7956c80 | 37:a61beb21d16d |
---|---|
101 debug("Submitting form") | 101 debug("Submitting form") |
102 data = [] | 102 data = [] |
103 for ctrl in self.ctl_list: | 103 for ctrl in self.ctl_list: |
104 data.append((ctrl["name"], ctrl["control"].GetValue())) | 104 data.append((ctrl["name"], ctrl["control"].GetValue())) |
105 print "submitting:",data | 105 print "submitting:",data |
106 id = self.host.bridge.submitForm(self.target, data) | 106 id = self.host.bridge.gatewayRegister("SUBMIT",self.target, data) |
107 self.host.current_action_ids.add(id) | 107 self.host.current_action_ids.add(id) |
108 print "action id:",id | 108 print "action id:",id |
109 event.Skip() | 109 self.MakeModal(False) |
110 self.Destroy() | |
110 | 111 |
111 def onFormCancelled(self, event): | 112 def onFormCancelled(self, event): |
112 """Called when cancel button is clicked""" | 113 """Called when cancel button is clicked""" |
113 debug("Cancelling form") | 114 debug("Cancelling form") |
114 #id = self.host.bridge.submitForm("button", data) | 115 self.MakeModal(False) |
115 #self.host.current_action_ids.add(id) | 116 self.Close() |
116 #print "action id:",id | |
117 event.Skip() | |
118 | 117 |
119 def onClose(self, event): | 118 def onClose(self, event): |
120 """Close event: we have to send the form.""" | 119 """Close event: we have to send the form.""" |
121 debug("close") | 120 debug("close") |
122 | |
123 self.MakeModal(False) | 121 self.MakeModal(False) |
124 event.Skip() | 122 event.Skip() |
125 | 123 |