[Zope3-dev] ZConfig for Zope 3

Fred L. Drake, Jr. fred@zope.com
Mon, 23 Jun 2003 18:08:40 -0400


Zope 3 will soon be using ZConfig for site-admin configuration.  ZCML
will still be used for component configuration.

The zope.app.startup package will be replaced by a zope.app.process
package, though most of the contents will be the same.  z3.py will be
simplified and will use a new module in zope.app.process for most of
it's logic.  Some of the logic will be handled directly by the
relevant packages in response to new ProcessStarted and DatabaseOpened
events that will be triggered during startup; add-in products will be
able to register for notification of these events as well in their
ZCML configuration files.

As part of this change, the zserver.zcml and zserver.zcml.in files
will be removed and replaced with a ZConfig file named zope.conf.in.
When Zope starts up, it will first look for zope.conf; if that isn't
found, it will read zope.conf.in.  If the configuration file is
specified on the z3.py command line, the specified file will be used
and no search for the configuration file will be performed.

Some additional work is needed for locating the default configuration
file, logging configuration, testing, and documentation is required
before these changes can be committed on the trunk.  I'm planning to
work on this tomorrow (Tuesday), and then commit the changes to the
trunk on Wednesday.  For now, the changes can be found in the
fdrake-zconfig-in-zope-3-branch of Zope 3.


  -Fred

-- 
Fred L. Drake, Jr.  <fred at zope.com>
PythonLabs at Zope Corporation