Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0100.py @ 1635:591e04f0103c
plugin file: added "Action/send" file menu
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 20 Nov 2015 01:57:18 +0100 |
parents | 98f92a054539 |
children | 94c450972346 |
comparison
equal
deleted
inserted
replaced
1634:95ea323e7d04 | 1635:591e04f0103c |
---|---|
65 self.__selected_id = host.registerCallback(self._gatewaySelectedCb, with_data=True) | 65 self.__selected_id = host.registerCallback(self._gatewaySelectedCb, with_data=True) |
66 host.importMenu((D_("Service"), D_("gateways")), self._gatewaysMenu, security_limit=1, help_string=D_("Find gateways")) | 66 host.importMenu((D_("Service"), D_("gateways")), self._gatewaysMenu, security_limit=1, help_string=D_("Find gateways")) |
67 | 67 |
68 def _gatewaysMenu(self, data, profile): | 68 def _gatewaysMenu(self, data, profile): |
69 """ XMLUI activated by menu: return Gateways UI | 69 """ XMLUI activated by menu: return Gateways UI |
70 | |
70 @param profile: %(doc_profile)s | 71 @param profile: %(doc_profile)s |
71 | |
72 """ | 72 """ |
73 client = self.host.getClient(profile) | 73 client = self.host.getClient(profile) |
74 try: | 74 try: |
75 jid_ = jid.JID(data.get(xml_tools.formEscape('external_jid'), client.jid.host)) | 75 jid_ = jid.JID(data.get(xml_tools.formEscape('external_jid'), client.jid.host)) |
76 except RuntimeError: | 76 except RuntimeError: |