diff frontends/src/primitivus/xmlui.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 06f44f797a1b
children 56f8a9c99194
line wrap: on
line diff
--- a/frontends/src/primitivus/xmlui.py	Sun Sep 08 19:18:46 2013 +0200
+++ b/frontends/src/primitivus/xmlui.py	Sat Sep 07 02:03:17 2013 +0200
@@ -34,6 +34,7 @@
             data.append(child.wholeText)
     return u"".join(data)
 
+
 class Pairs(urwid.WidgetWrap):
 
     def __init__(self, weight_0='1', weight_1='1'):
@@ -274,5 +275,6 @@
                 value = "true" if ctrl.get_state() else "false"
             else:
                 value = ctrl.get_edit_text()
-            self.host.bridge.setParam(ctrl._param_name, value, ctrl._param_category, profile_key = self.host.profile)
+            self.host.bridge.setParam(ctrl._param_name, value, ctrl._param_category,
+                                      profile_key=self.host.profile)
         self.host.removeWindow()