comparison plugins/plugin_xep_0077.py @ 103:6be927a465ed

XMLUI refactoring, step 1
author Goffi <goffi@goffi.org>
date Wed, 23 Jun 2010 00:23:26 +0800
parents 94011f553cd0
children 06985b6ad23a
comparison
equal deleted inserted replaced
102:94011f553cd0 103:6be927a465ed
66 self.host.bridge.actionResult(answer_type, answer['id'], answer_data) 66 self.host.bridge.actionResult(answer_type, answer['id'], answer_data)
67 return 67 return
68 68
69 form = data_form.Form.fromElement(x_elem) 69 form = data_form.Form.fromElement(x_elem)
70 xml_data = dataForm2xml(form) 70 xml_data = dataForm2xml(form)
71 self.host.bridge.actionResult("FORM", answer['id'], {"target":answer["from"], "type":"registration", "xml":xml_data}) 71 self.host.bridge.actionResult("XMLUI", answer['id'], {"target":answer["from"], "type":"registration", "xml":xml_data})
72 72
73 def reg_err(self, failure): 73 def reg_err(self, failure):
74 """Called when something is wrong with registration""" 74 """Called when something is wrong with registration"""
75 info (_("Registration failure: %s") % str(failure.value)) 75 info (_("Registration failure: %s") % str(failure.value))
76 answer_data = {} 76 answer_data = {}