[Zope-Coders] New API for Zope configuration info

Tres Seaver tseaver@zope.com
12 Feb 2003 09:00:41 -0500


On Wed, 2003-02-12 at 08:23, Barry A. Warsaw wrote:
> 
> >>>>> "TS" == Tres Seaver <tseaver@zope.com> writes:
> 
>     TS>   - Devlopers need to be able to start and stop the server
>     TS> repeatedly, varying the configuration in order to test it, or
>     TS> to test the server.
> 
> Just as easy, and in fact more desirable IMO, is the ability to point
> the program being at a different config file.  The reason this is more
> useful is that in testing, you'll often need to reproduce the test
> setup days or weeks later.  You have the same problem that sysadmins
> have -- because the configuration is hidden in some command line
> history, or worse, some now-unset envars, you've lost reproducibility.
> 
> But maybe that's really a 3rd use case...?

I think so, especcially when the debugging effort is primarily aimed at
isolating the effects of various configuration settings.  I did mention
to Fred that it would be extremely cool if ZConfig preserved the
"abstract syntax tree" of the configuration, such that you could walk up
to the Control Panel and download the "effective" configuration as a
file;  *that* would make reproducing the configuration later a
no-brainer.

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com