corrections in tiramisu's setting
This commit is contained in:
parent
e9ffd96a28
commit
513722ed57
1 changed files with 3 additions and 3 deletions
|
@ -289,15 +289,15 @@ class Setting(object):
|
|||
properties.remove('frozen')
|
||||
|
||||
if properties != frozenset():
|
||||
comment = (opt_or_descr._name, str(list(properties)))
|
||||
props = list(properties)
|
||||
if 'frozen' in properties:
|
||||
raise PropertiesOptionError(_('cannot change the value for '
|
||||
'option {0} this option is frozen'
|
||||
'').format(comment))
|
||||
'').format(opt_or_descr._name), props)
|
||||
else:
|
||||
raise PropertiesOptionError(_("trying to access to an option "
|
||||
"named: {0} with properties {1}"
|
||||
"").format(comment, list(properties)))
|
||||
"").format(opt_or_descr._name, str(props)), props)
|
||||
|
||||
def _get_permissive(self, opt=None):
|
||||
return self._permissives.get(opt, frozenset())
|
||||
|
|
Loading…
Reference in a new issue