Mercurial > libervia-backend
diff frontends/src/wix/param.py @ 641:49587e170f53
core: added the security_limit to setParam
- params with a security greater than security_limit can not be modified
- special value: security_limit < 0 disable the check (all params can be modified)
author | souliane <souliane@mailoo.org> |
---|---|
date | Sat, 07 Sep 2013 02:03:17 +0200 |
parents | ca2cae6b2c6d |
children | 93bd868b8fb6 |
line wrap: on
line diff
--- a/frontends/src/wix/param.py Sun Sep 08 19:18:46 2013 +0200 +++ b/frontends/src/wix/param.py Sat Sep 07 02:03:17 2013 +0200 @@ -103,7 +103,6 @@ cat_dom.unlink() self.host.bridge.getParamsForCategory(category, - security_limit=-1, profile_key=self.host.profile, callback=gotParams, errback=errorGettingParams) @@ -137,7 +136,8 @@ def __save_parameters(self): for param in self.modified: - self.host.bridge.setParam(param[0], self.modified[param], param[1], profile_key = self.host.profile) + self.host.bridge.setParam(param[0], self.modified[param], param[1], + profile_key=self.host.profile) self.modified.clear() def onClose(self, event):