corrections in tiramisu's setting

This commit is contained in:
Emmanuel Garette 2013-07-23 14:24:42 +02:00
parent e9ffd96a28
commit 513722ed57

View File

@ -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())