E&S CVS Commit: PEAK - A third swing at the right resolution algorithm for properties. Now,

pje at eby-sarna.com pje at eby-sarna.com
Sat Oct 5 20:08:01 EDT 2002


Module Name:	PEAK
Committed By:	pje
Date:		Sun Oct  6 00:07:20 UTC 2002

Modified Files:
	PEAK/src/peak/config: config_components.py interfaces.py

Log Message:
A third swing at the right resolution algorithm for properties.  Now,
values and defaults are specific, and only rules can have wildcards.  A
value is checked for first, then rules, and finally the default.  A rule
can thus load data more specific than itself, eliminating the need to
redirect between say, a "peak.foo" property and a "config.peak.foo"
property.  Instead, one can have a "*" rule that loads in all the config
files appropriate to that level of property map.  As long as the config
files only define values or defaults, the rule doesn't even need to look
for the value that the property map asked for, it can just pass by
returning the 'NOT_GIVEN' singleton.


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/src/peak/config/config_components.py.diff?r1=1.3&r2=1.4
http://cvs.eby-sarna.com/PEAK/src/peak/config/interfaces.py.diff?r1=1.4&r2=1.5

To generate a diff of this commit:
cvs rdiff -r1.3 -r1.4 PEAK/src/peak/config/config_components.py
cvs rdiff -r1.4 -r1.5 PEAK/src/peak/config/interfaces.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




More information about the source-changes mailing list