reorganise consistencies

This commit is contained in:
2017-12-23 10:40:41 +01:00
parent 538e6a792a
commit 7ab479f628
11 changed files with 1052 additions and 218 deletions

View File

@ -142,6 +142,7 @@ class ConfigBag(object):
'trusted_cached_properties': True,
}
self.config = config
self.fromconsistency = []
for key, value in kwargs.items():
if value != self.default.get(key):
setattr(self, key, value)
@ -160,7 +161,9 @@ class ConfigBag(object):
if filters == 'nooption' and (key.startswith('option') or \
key == 'properties'):
continue
if key != 'default':
if key == 'fromconsistency':
kwargs['fromconsistency'] = copy(self.fromconsistency)
elif key != 'default':
value = getattr(self, key)
if value != self.default.get(key):
kwargs[key] = value