Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0100.py @ 1539:98f92a054539
plugins: lowered security limits for non dangerous actions. A reference documentation is in progress to choose values: http://wiki.goffi.org/wiki/Security_Limits/en
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 29 Sep 2015 20:19:43 +0200 |
parents | 3265a2639182 |
children | 591e04f0103c |
comparison
equal
deleted
inserted
replaced
1538:55967cf161b1 | 1539:98f92a054539 |
---|---|
61 self.__gateways = {} # dict used to construct the answer to findGateways. Key = target jid | 61 self.__gateways = {} # dict used to construct the answer to findGateways. Key = target jid |
62 host.bridge.addMethod("findGateways", ".plugin", in_sign='ss', out_sign='s', method=self._findGateways) | 62 host.bridge.addMethod("findGateways", ".plugin", in_sign='ss', out_sign='s', method=self._findGateways) |
63 host.bridge.addMethod("gatewayRegister", ".plugin", in_sign='ss', out_sign='s', method=self._gatewayRegister) | 63 host.bridge.addMethod("gatewayRegister", ".plugin", in_sign='ss', out_sign='s', method=self._gatewayRegister) |
64 self.__menu_id = host.registerCallback(self._gatewaysMenu, with_data=True) | 64 self.__menu_id = host.registerCallback(self._gatewaysMenu, with_data=True) |
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=2, 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 @param profile: %(doc_profile)s | 70 @param profile: %(doc_profile)s |
71 | 71 |