metaconfig support
This commit is contained in:
@ -181,7 +181,8 @@ class ConfigBag:
|
||||
return 'validator' in self._setting_properties
|
||||
return self._validate
|
||||
if key == 'setting_properties':
|
||||
if self.force_unrestraint or not self._validate:
|
||||
#if self.force_unrestraint or not self._validate:
|
||||
if self.force_unrestraint:
|
||||
return None
|
||||
return self._setting_properties
|
||||
if key == '_setting_properties':
|
||||
@ -196,6 +197,11 @@ class ConfigBag:
|
||||
def __setattr__(self, key, value):
|
||||
if key == 'validate':
|
||||
self._validate = value
|
||||
#FIXME
|
||||
try:
|
||||
del self._setting_properties
|
||||
except AttributeError:
|
||||
pass
|
||||
else:
|
||||
super().__setattr__(key, value)
|
||||
|
||||
|
Reference in New Issue
Block a user