core: security attribute added to the parameters

- getParams, getParamsUI and getParamsForCategory have a security_limit parameter to filter
- parameters with security = 0 can be retrieved/modified from Libervia
This commit is contained in:
souliane 2013-09-05 20:28:44 +02:00
commit 7652fd3a15
2 changed files with 126 additions and 71 deletions

View file

@ -363,7 +363,8 @@ class MainWindow(wx.Frame, QuickApp):
def onParam(self, e):
debug(_("Param request"))
#xmlui = self.bridge.getParamsUI(self.profile)
#security_limit = -1
#xmlui = self.bridge.getParamsUI(security_limit, profile_key=self.profile)
#XMLUI(self, xml_data = xmlui)
param=Param(self)

View file

@ -102,7 +102,11 @@ class Param(wx.Frame):
self.notebook.AddPage(panel, category)
cat_dom.unlink()
self.host.bridge.getParamsForCategory(category, profile_key = self.host.profile, callback = gotParams, errback = errorGettingParams)
self.host.bridge.getParamsForCategory(category,
security_limit=-1,
profile_key=self.host.profile,
callback=gotParams,
errback=errorGettingParams)
def onTextChanged(self, event):
"""Called when a string paramater is modified"""