comparison 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
comparison
equal deleted inserted replaced
640:8211b462af6b 641:49587e170f53
101 panel.SetAutoLayout(True) 101 panel.SetAutoLayout(True)
102 self.notebook.AddPage(panel, category) 102 self.notebook.AddPage(panel, category)
103 cat_dom.unlink() 103 cat_dom.unlink()
104 104
105 self.host.bridge.getParamsForCategory(category, 105 self.host.bridge.getParamsForCategory(category,
106 security_limit=-1,
107 profile_key=self.host.profile, 106 profile_key=self.host.profile,
108 callback=gotParams, 107 callback=gotParams,
109 errback=errorGettingParams) 108 errback=errorGettingParams)
110 109
111 def onTextChanged(self, event): 110 def onTextChanged(self, event):
135 self.host.current_action_ids.add(id) 134 self.host.current_action_ids.add(id)
136 event.Skip() 135 event.Skip()
137 136
138 def __save_parameters(self): 137 def __save_parameters(self):
139 for param in self.modified: 138 for param in self.modified:
140 self.host.bridge.setParam(param[0], self.modified[param], param[1], profile_key = self.host.profile) 139 self.host.bridge.setParam(param[0], self.modified[param], param[1],
140 profile_key=self.host.profile)
141 self.modified.clear() 141 self.modified.clear()
142 142
143 def onClose(self, event): 143 def onClose(self, event):
144 """Close event: we have to save the params.""" 144 """Close event: we have to save the params."""
145 debug(_("close")) 145 debug(_("close"))