comparison src/plugins/plugin_xep_0050.py @ 809:743b757777d3

core: security limit in menus
author Goffi <goffi@goffi.org>
date Tue, 04 Feb 2014 18:32:39 +0100
parents 9007bb133009
children 1fe00f0c9a91
comparison
equal deleted inserted replaced
808:d035c662b357 809:743b757777d3
210 self.answering = {} 210 self.answering = {}
211 host.bridge.addMethod("requestCommand", ".plugin", in_sign='ss', out_sign='s', 211 host.bridge.addMethod("requestCommand", ".plugin", in_sign='ss', out_sign='s',
212 method=self._requestCommandsList, 212 method=self._requestCommandsList,
213 async=True) 213 async=True)
214 self.__requesting_id = host.registerCallback(self._requestingEntity, with_data=True) 214 self.__requesting_id = host.registerCallback(self._requestingEntity, with_data=True)
215 host.importMenu((D_("Service"), D_("commands")), self._commandsMenu, help_string=D_("Execute ad-hoc commands")) 215 host.importMenu((D_("Service"), D_("commands")), self._commandsMenu, security_limit=4, help_string=D_("Execute ad-hoc commands"))
216 216
217 def getHandler(self, profile): 217 def getHandler(self, profile):
218 return XEP_0050_handler(self) 218 return XEP_0050_handler(self)
219 219
220 def profileConnected(self, profile): 220 def profileConnected(self, profile):