[Zope-Checkins]
SVN: Zope/branches/2.11/lib/python/Zope2/App/startup.py
sending DatabaseOpened event during startup
Andreas Jung
andreas at andreas-jung.com
Thu Dec 27 09:26:23 EST 2007
Log message for revision 82469:
sending DatabaseOpened event during startup
Changed:
U Zope/branches/2.11/lib/python/Zope2/App/startup.py
-=-
Modified: Zope/branches/2.11/lib/python/Zope2/App/startup.py
===================================================================
--- Zope/branches/2.11/lib/python/Zope2/App/startup.py 2007-12-27 14:25:40 UTC (rev 82468)
+++ Zope/branches/2.11/lib/python/Zope2/App/startup.py 2007-12-27 14:26:22 UTC (rev 82469)
@@ -38,6 +38,9 @@
import Zope2
import ZPublisher
+from zope.event import notify
+from zope.app import appsetup
+
app = None
startup_time = asctime()
@@ -74,6 +77,8 @@
else:
DB = ZODB.DB(m.Storage, databases=databases)
+ notify(appsetup.interfaces.DatabaseOpened(DB))
+
Globals.BobobaseName = DB.getName()
if DB.getActivityMonitor() is None:
More information about the Zope-Checkins
mailing list