[Zope-Checkins] SVN: Zope/trunk/src/Zope2/App/startup.py Account for ZopeLite
Hanno Schlichting
hannosch at hannosch.eu
Sun Jul 3 09:15:22 EDT 2011
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))
More information about the Zope-Checkins
mailing list