comparison src/plugins/plugin_xep_0100.py @ 1707:94c450972346

primitivus and plugins: renamed a few menus: - display all menu with the first letter in upper case - moved Search directory from Service to Contacts - moved "Join room" from Communication to Groups - moved Bookmarks from Communication to Groups
author souliane <souliane@mailoo.org>
date Tue, 01 Dec 2015 12:45:14 +0100
parents 591e04f0103c
children d17772b0fe22
comparison
equal deleted inserted replaced
1706:aa60bd58ac23 1707:94c450972346
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=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
71 @param profile: %(doc_profile)s 71 @param profile: %(doc_profile)s