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