E&S CVS Commit: PEAK - Added a '-c/--config' option to PEAK bootstrap commands to load an .ini

pje at eby-sarna.com pje at eby-sarna.com
Sun Apr 3 11:48:00 EDT 2005

Module Name:	PEAK
Committed By:	pje
Date:		Sun Apr  3 15:47:51 UTC 2005

Modified Files:
	PEAK/src/peak/running: commands.py

Log Message:
Added a '-c/--config' option to PEAK bootstrap commands to load an .ini
configuration file in a new service area before executing any subcommands.

This allows you to do things like::

    peak launch -c bulletins ref:sitemap at sitemap.xml

which loads the 'bulletins' configuration file before launching the
sitemap.  Note that if you are subclassing 'commands.Bootstrap' you can
suppress this option using 'options.reject_inheritance("-c","--config")'
in the body of your subclass' class definition.  You may wish to do this
if your application's subcommands must run in the same service area as the
parent command.  (E.g. if the parent command expects the subcommand to
partake in a transaction controlled by the parent command.)

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

To generate a diff of this commit:
cvs rdiff -r1.172 -r1.173 PEAK/CHANGES.txt
cvs rdiff -r1.64 -r1.65 PEAK/src/peak/running/commands.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