Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0055.py @ 867:40ad5a344332
plugin XEP-0055: salut.libervia.org is temporarly used as default value
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 25 Feb 2014 23:03:17 +0100 |
parents | 1fe00f0c9a91 |
children | 301b342c697a |
comparison
equal
deleted
inserted
replaced
866:f27d736428f1 | 867:40ad5a344332 |
---|---|
75 """ | 75 """ |
76 form_ui = xml_tools.XMLUI("form", title=_("Search directory"), submit_id=self.__menu_cb_id) | 76 form_ui = xml_tools.XMLUI("form", title=_("Search directory"), submit_id=self.__menu_cb_id) |
77 form_ui.addText(_("Please enter the search jid"), 'instructions') | 77 form_ui.addText(_("Please enter the search jid"), 'instructions') |
78 form_ui.changeContainer("pairs") | 78 form_ui.changeContainer("pairs") |
79 form_ui.addLabel("jid") | 79 form_ui.addLabel("jid") |
80 form_ui.addString("jid", value="users.jabberfr.org") # TODO: replace users.jabberfr.org by any XEP-0055 compatible service discovered on current server | 80 # form_ui.addString("jid", value="users.jabberfr.org") # TODO: replace users.jabberfr.org by any XEP-0055 compatible service discovered on current server |
81 form_ui.addString("jid", value="salut.libervia.org") # TODO: replace salut.libervia.org by any XEP-0055 compatible service discovered on current server | |
81 return {'xmlui': form_ui.toXml()} | 82 return {'xmlui': form_ui.toXml()} |
82 | 83 |
83 def _getSearchUI(self, to_jid_s, profile_key): | 84 def _getSearchUI(self, to_jid_s, profile_key): |
84 d = self.getSearchUI(jid.JID(to_jid_s), profile_key) | 85 d = self.getSearchUI(jid.JID(to_jid_s), profile_key) |
85 d.addCallback(lambda xmlui: xmlui.toXml()) | 86 d.addCallback(lambda xmlui: xmlui.toXml()) |