[Zope-Checkins] CVS: Zope/lib/python/Zope/App - startup.py:1.9
Chris McDonough
chrism@zope.com
Sat, 19 Jul 2003 22:56:47 -0400
Update of /cvs-repository/Zope/lib/python/Zope/App
In directory cvs.zope.org:/tmp/cvs-serv5583/lib/python/Zope/App
Modified Files:
startup.py
Log Message:
Integrate DBTab into HEAD.
DBTab now obtains all values related to storages and databases from zope.conf. It is also now just a package rather than a product.
A new product named ZODBMountPoint exposes the mount point functionality to the ZMI.
=== Zope/lib/python/Zope/App/startup.py 1.8 => 1.9 ===
--- Zope/lib/python/Zope/App/startup.py:1.8 Tue Jun 24 17:31:31 2003
+++ Zope/lib/python/Zope/App/startup.py Sat Jul 19 22:56:11 2003
@@ -52,10 +52,9 @@
m=imp.find_module('custom_zodb',[getConfiguration().instancehome])
except:
# if there is no custom_zodb, use the config file specified databases
- config = getConfiguration()
- name = config.db_mount_tab['/']
- DB = config.db_name_tab[name].open()
- Globals.BobobaseName = name
+ configuration = getConfiguration()
+ DB = configuration.dbtab.getDatabase('/', is_root=1)
+ Globals.BobobaseName = DB.getName()
else:
m=imp.load_module('Zope.custom_zodb', m[0], m[1], m[2])
if hasattr(m,'DB'):