XMLUI refactoring, step 1

This commit is contained in:
Goffi 2010-06-23 00:23:26 +08:00
commit eaeb313e54
2 changed files with 220 additions and 73 deletions

View file

@ -105,7 +105,7 @@ class CS_Plugin():
<elem type='text' value='Welcome %(name)s, you have %(nb_message)i unread messages'/>
</form>
""" % {'name':user_name, 'nb_message':unread_messages}
self.host.bridge.actionResult("FORM", id, {"type":"window", "xml":form_xml})
self.host.bridge.actionResult("XMLUI", id, {"type":"window", "xml":form_xml})

View file

@ -68,7 +68,7 @@ class XEP_0077():
form = data_form.Form.fromElement(x_elem)
xml_data = dataForm2xml(form)
self.host.bridge.actionResult("FORM", answer['id'], {"target":answer["from"], "type":"registration", "xml":xml_data})
self.host.bridge.actionResult("XMLUI", answer['id'], {"target":answer["from"], "type":"registration", "xml":xml_data})
def reg_err(self, failure):
"""Called when something is wrong with registration"""