diff src/core/sat_main.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 7ea6d5a86e58
children 2a7185b8452c
line wrap: on
line diff
--- a/src/core/sat_main.py	Sun Sep 08 19:18:46 2013 +0200
+++ b/src/core/sat_main.py	Sat Sep 07 02:03:17 2013 +0200
@@ -414,10 +414,10 @@
 
     ## Client management ##
 
-    def setParam(self, name, value, category, profile_key):
+    def setParam(self, name, value, category, security_limit, profile_key):
         """set wanted paramater and notice observers"""
         info(_("setting param: %(name)s=%(value)s in category %(category)s") % {'name': name, 'value': value, 'category': category})
-        self.memory.setParam(name, value, category, profile_key)
+        self.memory.setParam(name, value, category, security_limit, profile_key)
 
     def isConnected(self, profile_key):
         """Return connection status of profile