[Zope-Checkins] CVS: Zope/lib/python/Zope/App - startup.py:1.2.4.2

Chris McDonough chrism@zope.com
Sun, 27 Oct 2002 01:09:14 -0500


Update of /cvs-repository/Zope/lib/python/Zope/App
In directory cvs.zope.org:/tmp/cvs-serv18958/lib/python/Zope/App

Modified Files:
      Tag: chrism-install-branch
	startup.py 
Log Message:
Made directive parsing of config values more general and robust by making
all handlers follow a convention of accepting a name and a config
in order to find what values they're interested in.  This also greatly
aids in error reporting.

Changed the definition of the 'zodb_databases' section so we define a
database in terms of its path.  The path indicates the database's "mount
point".  An exception is the '/' database, which  is the main database.
Mounting is not yet supported, but if we integrate Shane's dbtab
product, it should be fairly straightforward.


=== Zope/lib/python/Zope/App/startup.py 1.2.4.1 => 1.2.4.2 ===
--- Zope/lib/python/Zope/App/startup.py:1.2.4.1	Sat Oct 26 15:51:51 2002
+++ Zope/lib/python/Zope/App/startup.py	Sun Oct 27 01:09:14 2002
@@ -43,7 +43,7 @@
     # Import products
     OFS.Application.import_products()
 
-    DB = DirectiveRegistry['main_zodb_database']() # directive is a callable
+    DB = DirectiveRegistry['zodb_databases']['/']() # directive is a callable
 
     if DB.getActivityMonitor() is None:
         from ZODB.ActivityMonitor import ActivityMonitor