E&S CVS Commit: PEAK - Completed configuration files refactoring. Configuration files now can

pje at eby-sarna.com pje at eby-sarna.com
Sun Nov 3 10:51:00 EST 2002


Module Name:	PEAK
Committed By:	pje
Date:		Sun Nov  3 15:50:21 UTC 2002

Modified Files:
	PEAK: TODO.txt
	PEAK/src/peak: peak.ini
	PEAK/src/peak/config: config_components.py interfaces.py
	PEAK/src/peak/naming: names.py

Log Message:
Completed configuration files refactoring.  Configuration files now can
have [Load Settings From] and [Provide Utilities] sections, and property
sections can now define rules instead of just values.  Property values are
eval()'d at rule access time rather than configuration loading time, and
they have access to 'propertyMap', 'propertyName', and 'targetObj' locals,
as well as the full peak.api.* and config_components' globals.  "Load
Settings From" sections can access a potentially infinite variety of
sources for loading configuration data; the sources are defined using
the 'peak.config.loaders.*' property namespace, and thus can be
meta-configured even in the same configuration file.  Builtin loader types
are 'file' and 'mapping'.  GlobalConfig no longer has any hard-wired
configuration steps; everything is now in the peak.ini file.  Subclasses
of GlobalConfig need only perform 'self.config_filenames.append(fname)'
before calling GlobalConfig's 'setup()' method, to cause additional config
files to be loaded after 'peak.ini'.

Everything that is configurable in PEAK, is now (in principle) configurable
via property files.


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/TODO.txt.diff?r1=1.10&r2=1.11
http://cvs.eby-sarna.com/PEAK/src/peak/peak.ini.diff?r1=1.1&r2=1.2
http://cvs.eby-sarna.com/PEAK/src/peak/config/config_components.py.diff?r1=1.12&r2=1.13
http://cvs.eby-sarna.com/PEAK/src/peak/config/interfaces.py.diff?r1=1.13&r2=1.14
http://cvs.eby-sarna.com/PEAK/src/peak/naming/names.py.diff?r1=1.21&r2=1.22

To generate a diff of this commit:
cvs rdiff -r1.10 -r1.11 PEAK/TODO.txt
cvs rdiff -r1.1 -r1.2 PEAK/src/peak/peak.ini
cvs rdiff -r1.12 -r1.13 PEAK/src/peak/config/config_components.py
cvs rdiff -r1.13 -r1.14 PEAK/src/peak/config/interfaces.py
cvs rdiff -r1.21 -r1.22 PEAK/src/peak/naming/names.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