* Parameters: if _flatten_ is enabled, must flatten in reverse order to
give the firstly mentioned dict the priority.
This commit is contained in:
@@ -183,7 +183,7 @@ class Parameters(dict):
|
|||||||
dict.clear(self)
|
dict.clear(self)
|
||||||
if _opts_.get('_flatten_', False):
|
if _opts_.get('_flatten_', False):
|
||||||
#FIXME# if p is a Parameters object, then we must recursively flatten it too
|
#FIXME# if p is a Parameters object, then we must recursively flatten it too
|
||||||
for p in _override_dicts_:
|
for p in _override_dicts_[::-1]:
|
||||||
dict.update(self, p)
|
dict.update(self, p)
|
||||||
dict.update(self, _opts_)
|
dict.update(self, _opts_)
|
||||||
else:
|
else:
|
||||||
@@ -277,6 +277,8 @@ class Parameters(dict):
|
|||||||
# self._prm_[key] = value
|
# self._prm_[key] = value
|
||||||
def _ActiveReadValue_(self, val):
|
def _ActiveReadValue_(self, val):
|
||||||
"""Private subroutine for evaluating `active' members."""
|
"""Private subroutine for evaluating `active' members."""
|
||||||
|
#FIXME# Value overrides specified in enclosing Parameters object instance
|
||||||
|
# cannot be searched from this (enclosed) instance.
|
||||||
if isinstance(val, ActiveReadValue):
|
if isinstance(val, ActiveReadValue):
|
||||||
return val(self)
|
return val(self)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user