Log message for revision 122074: Account for ZopeLite Changed: U Zope/trunk/src/Zope2/App/startup.py
-=- Modified: Zope/trunk/src/Zope2/App/startup.py =================================================================== --- Zope/trunk/src/Zope2/App/startup.py 2011-07-03 13:07:09 UTC (rev 122073) +++ Zope/trunk/src/Zope2/App/startup.py 2011-07-03 13:15:22 UTC (rev 122074) @@ -97,12 +97,13 @@ # can indeed be opened. This avoids surprises during runtime when traversal # to some database mountpoint fails as the underlying storage cannot be # opened at all - for mount, name in dbtab.listMountPaths(): - _db = dbtab.getDatabase(mount) - _conn = _db.open() - _conn.close() - del _conn - del _db + if dbtab is not None: + for mount, name in dbtab.listMountPaths(): + _db = dbtab.getDatabase(mount) + _conn = _db.open() + _conn.close() + del _conn + del _db notify(DatabaseOpened(DB)) _______________________________________________ Zope-Checkins maillist - Zope-Checkins@zope.org https://mail.zope.org/mailman/listinfo/zope-checkins