set force_permissive to append
This commit is contained in:
parent
100a0110cd
commit
9adfffe339
|
@ -229,7 +229,8 @@ class MasterSlaves(object):
|
||||||
else:
|
else:
|
||||||
return value
|
return value
|
||||||
else:
|
else:
|
||||||
multi.append(value, setitem=False, force=True, validate=validate)
|
multi.append(value, setitem=False, force=True, validate=validate,
|
||||||
|
force_permissive=force_permissive)
|
||||||
one_has_value = True
|
one_has_value = True
|
||||||
if not one_has_value:
|
if not one_has_value:
|
||||||
#raise last err
|
#raise last err
|
||||||
|
|
|
@ -427,8 +427,6 @@ class Settings(object):
|
||||||
if not force:
|
if not force:
|
||||||
forbidden_properties = forbidden_set_properties & properties
|
forbidden_properties = forbidden_set_properties & properties
|
||||||
if forbidden_properties:
|
if forbidden_properties:
|
||||||
print "super ..."
|
|
||||||
raise Exception('pouet')
|
|
||||||
raise ConfigError(_('cannot add those properties: {0}').format(
|
raise ConfigError(_('cannot add those properties: {0}').format(
|
||||||
' '.join(forbidden_properties)))
|
' '.join(forbidden_properties)))
|
||||||
self._p_.setproperties(path, properties)
|
self._p_.setproperties(path, properties)
|
||||||
|
|
Loading…
Reference in New Issue