Commit 97b028ed authored by Andreas Jung's avatar Andreas Jung

sending DatabaseOpened event during startup

parent 8462dbbb
......@@ -38,6 +38,9 @@ import App.ZApplication
import Zope2
import ZPublisher
from zope.event import notify
from zope.app import appsetup
app = None
startup_time = asctime()
......@@ -74,6 +77,8 @@ def startup():
else:
DB = ZODB.DB(m.Storage, databases=databases)
notify(appsetup.interfaces.DatabaseOpened(DB))
Globals.BobobaseName = DB.getName()
if DB.getActivityMonitor() is None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment