E&S CVS Commit: PEAK - Added a new class, 'config.IniLoader', that can be used to lazily load

pje at eby-sarna.com pje at eby-sarna.com
Fri Oct 8 15:10:00 EDT 2004


Module Name:	PEAK
Committed By:	pje
Date:		Fri Oct  8 19:09:42 UTC 2004

Modified Files:
	PEAK: CHANGES.txt
	PEAK/src/peak: peak.ini
	PEAK/src/peak/config: config_components.py ini_files.py

Log Message:
Added a new class, 'config.IniLoader', that can be used to lazily load
.ini files as configuration.  'IniLoader' instances have an 'iniFiles'
attribute that lists the configuration sources (filenames/URLs/factories)
to be used, and automatically load the .ini files as soon as you try to get
any configuration data for them.  Previously, similar functionality was
only available via 'config.makeRoot()'.  Also, there's now an 'ini'
reference type that instantiates an 'IniLoader' for one or more addresses.

Please see CHANGES.txt for usage examples of both new features.


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/CHANGES.txt.diff?r1=1.150&r2=1.151
http://cvs.eby-sarna.com/PEAK/src/peak/peak.ini.diff?r1=1.147&r2=1.148
http://cvs.eby-sarna.com/PEAK/src/peak/config/config_components.py.diff?r1=1.82&r2=1.83
http://cvs.eby-sarna.com/PEAK/src/peak/config/ini_files.py.diff?r1=1.9&r2=1.10

To generate a diff of this commit:
cvs rdiff -r1.150 -r1.151 PEAK/CHANGES.txt
cvs rdiff -r1.147 -r1.148 PEAK/src/peak/peak.ini
cvs rdiff -r1.82 -r1.83 PEAK/src/peak/config/config_components.py
cvs rdiff -r1.9 -r1.10 PEAK/src/peak/config/ini_files.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