SVN: Zope/trunk/src/Zope2/App/startup.py Account for ZopeLite
Hanno Schlichting <[email protected]>
| Newsgroups | gmane.comp.web.zope.cvs |
|---|---|
| Message-ID | <20110703131522.E9123940C9__8499.69296618856$1309698934$gmane$org@cvs.zope.org> |
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 - [email protected]
https://mail.zope.org/mailman/listinfo/zope-checkins