reorganise consistencies
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user