comparison plugins/plugin_xep_0077.py @ 101:783e9d6980ec

Couchsurfing plugin: first draft SàT core: adding additionnal menu method bridge: new methods getMenus, getMenuHelp and callMenu wix: new menu are added on startup CS plugin: login on CS
author Goffi <goffi@goffi.org>
date Sat, 19 Jun 2010 17:15:30 +0800
parents 86f1f7f6d332
children 94011f553cd0
comparison
equal deleted inserted replaced
100:50f1591c8fc6 101:783e9d6980ec
59 try: 59 try:
60 x_elem = filter (lambda x:x.name == "x", answer.firstChildElement().elements())[0] #We only want the "x" element (data form) 60 x_elem = filter (lambda x:x.name == "x", answer.firstChildElement().elements())[0] #We only want the "x" element (data form)
61 except IndexError: 61 except IndexError:
62 info(_("No data form found")) 62 info(_("No data form found"))
63 #TODO: manage registration without data form 63 #TODO: manage registration without data form
64 answer_data = {}
65 answer_data={"reason": "unmanaged", "message":_("This gateway can't be managed by SàT, sorry :(")} 64 answer_data={"reason": "unmanaged", "message":_("This gateway can't be managed by SàT, sorry :(")}
66 answer_type = "ERROR" 65 answer_type = "ERROR"
67 self.host.bridge.actionResult(answer_type, answer['id'], answer_data) 66 self.host.bridge.actionResult(answer_type, answer['id'], answer_data)
68 return 67 return
69 68