Commit 06f53838 authored by Andreas Jung's avatar Andreas Jung

sending DatabaseOpened event during the startup

parent f6ff339a
......@@ -78,9 +78,8 @@ Zope Changes
Features added
- Zope2 startup: Zope will now send a ProcessStarting event when it
is ready to serve requests. You can subscribe to this event e.g.
for starting application-level threads.
- Zope2 startup: Zope will now send DatabaseOpened and
ProcessStarting events.
- Testing.ZopeTestCase: Introduced a "ZopeLite" test layer, making it
possible to mix ZTC and non-ZTC tests much more freely.
......
......@@ -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