comparison src/plugins/plugin_xep_0055.py @ 1506:8405d622bde0

plugin XEP-0055: remove a "debug" break that has been forgotten here
author souliane <souliane@mailoo.org>
date Wed, 02 Sep 2015 13:54:57 +0200
parents e3330ce65285
children ec60682a9d17
comparison
equal deleted inserted replaced
1505:5ddc4cf251fa 1506:8405d622bde0
263 if [child for child in elt.children if child.name == "item"]: 263 if [child for child in elt.children if child.name == "item"]:
264 xml_tools.dataFormResult2AdvancedList(main_ui, elt) 264 xml_tools.dataFormResult2AdvancedList(main_ui, elt)
265 else: 265 else:
266 main_ui.addText(D_("The search gave no result")) 266 main_ui.addText(D_("The search gave no result"))
267 267
268
268 ## Retrieve the search fields ## 269 ## Retrieve the search fields ##
269 270
270 271
271 def _getFieldsUI(self, to_jid_s, profile_key): 272 def _getFieldsUI(self, to_jid_s, profile_key):
272 """Ask a service to send us the list of the form fields it manages. 273 """Ask a service to send us the list of the form fields it manages.
374 @param profile_key (unicode): %(doc_profile_key)s 375 @param profile_key (unicode): %(doc_profile_key)s
375 @return: a deferred domish.Element 376 @return: a deferred domish.Element
376 """ 377 """
377 form = data_form.Form.fromElement(form_elt) 378 form = data_form.Form.fromElement(form_elt)
378 d_list = [] 379 d_list = []
380
379 for field in [field.var for field in form.fieldList if field.var]: 381 for field in [field.var for field in form.fieldList if field.var]:
380 d_list.append(self.searchRequest(to_jid, {field: value}, profile_key)) 382 d_list.append(self.searchRequest(to_jid, {field: value}, profile_key))
381 break
382 383
383 def cb(result): # return the results compiled in one domish element 384 def cb(result): # return the results compiled in one domish element
384 result_elt = None 385 result_elt = None
385 for success, form_elt in result: 386 for success, form_elt in result:
386 if not success: 387 if not success: