E&S CVS Commit: PEAK - Added a basic configuration file format, and used it to replace the

pje at eby-sarna.com pje at eby-sarna.com
Mon Oct 28 12:59:00 EST 2002

Module Name:	PEAK
Committed By:	pje
Date:		Mon Oct 28 17:58:01 UTC 2002

Modified Files:
	PEAK: setup.py
	PEAK/src/peak/config: config_components.py
	PEAK/src/peak/naming: names.py
	PEAK/src/peak/naming/factories: __init__.py
Added Files:
	PEAK/src/peak: peak.ini

Log Message:
Added a basic configuration file format, and used it to replace the
schemes dictionary in peak.naming.factories, by adding a "peak.ini"
global configuration file for PEAK builtins.  This means that the
factories subpackage is pretty much useless now; the URL classes can
easily move anywhere now, like to the same modules as the implementations.
It should now be easy to add lots of address schemes to PEAK.  Also,
subclasses of GlobalConfig can change the list of filenames used to load
configuration settings, and thus perhaps read a ~.peakrc or /etc/peak.ini
file, or an app-specific global configuration file.

The file format is very primitive right now: ConfigParser with eval() of
the settings done at file load time.  Ultimately, this should move to a
true lazy evaluation mode, and there are some syntactic sugar features that
should be added.  For right now, however, all we need are constant

Last, but not least, fixed a bug in the fromURL() method of ParsedURLs.

To view diffs of this commit, you can use the following URL(s):

To generate a diff of this commit:
cvs rdiff -r1.29 -r1.30 PEAK/setup.py
cvs rdiff -r0 -r1.1 PEAK/src/peak/peak.ini
cvs rdiff -r1.10 -r1.11 PEAK/src/peak/config/config_components.py
cvs rdiff -r1.19 -r1.20 PEAK/src/peak/naming/names.py
cvs rdiff -r1.15 -r1.16 PEAK/src/peak/naming/factories/__init__.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