E&S CVS Commit: PEAK - Added '[Named Services]' section parser to 'peak.ini'. This new section

pje at eby-sarna.com pje at eby-sarna.com
Thu Jan 29 19:29:00 EST 2004


Module Name:	PEAK
Committed By:	pje
Date:		Fri Jan 30 00:28:02 UTC 2004

Modified Files:
	PEAK: CHANGES.txt TODO.txt
	PEAK/src/peak: peak.ini
	PEAK/src/peak/config: ini_files.py
	PEAK/src/peak/ddt: processors.py

Log Message:
Added '[Named Services]' section parser to 'peak.ini'.  This new section
type functions almost identically to '[Component Factories]', except that
the keys are property names rather than references to interfaces or other
component keys.  This should be helpful for configuring shared services
that all implement the same interface, such as SQL connection objects.

Note that to look up a named service, you simply use the appropriate
property name, as usual.  The difference is that you are guaranteed to
always use the same *instance* of the service, within a given service
area.

Also, added 'ddt.SQLChecker()', which verifies SQL results against a
test document.  'SQLChecker' makes use of the new "Named Services" feature
in order to ensure it's accessing the database you intend to test (as
opposed to say, the nearest SQL connection object).


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/CHANGES.txt.diff?r1=1.126&r2=1.127
http://cvs.eby-sarna.com/PEAK/TODO.txt.diff?r1=1.105&r2=1.106
http://cvs.eby-sarna.com/PEAK/src/peak/peak.ini.diff?r1=1.129&r2=1.130
http://cvs.eby-sarna.com/PEAK/src/peak/config/ini_files.py.diff?r1=1.4&r2=1.5
http://cvs.eby-sarna.com/PEAK/src/peak/ddt/processors.py.diff?r1=1.7&r2=1.8

To generate a diff of this commit:
cvs rdiff -r1.126 -r1.127 PEAK/CHANGES.txt
cvs rdiff -r1.105 -r1.106 PEAK/TODO.txt
cvs rdiff -r1.129 -r1.130 PEAK/src/peak/peak.ini
cvs rdiff -r1.4 -r1.5 PEAK/src/peak/config/ini_files.py
cvs rdiff -r1.7 -r1.8 PEAK/src/peak/ddt/processors.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