Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
06f53838
Commit
06f53838
authored
Dec 27, 2007
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sending DatabaseOpened event during the startup
parent
f6ff339a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
doc/CHANGES.txt
doc/CHANGES.txt
+2
-3
lib/python/Zope2/App/startup.py
lib/python/Zope2/App/startup.py
+5
-0
No files found.
doc/CHANGES.txt
View file @
06f53838
...
@@ -78,9 +78,8 @@ Zope Changes
...
@@ -78,9 +78,8 @@ Zope Changes
Features added
Features added
- Zope2 startup: Zope will now send a ProcessStarting event when it
- Zope2 startup: Zope will now send DatabaseOpened and
is ready to serve requests. You can subscribe to this event e.g.
ProcessStarting events.
for starting application-level threads.
- Testing.ZopeTestCase: Introduced a "ZopeLite" test layer, making it
- Testing.ZopeTestCase: Introduced a "ZopeLite" test layer, making it
possible to mix ZTC and non-ZTC tests much more freely.
possible to mix ZTC and non-ZTC tests much more freely.
...
...
lib/python/Zope2/App/startup.py
View file @
06f53838
...
@@ -38,6 +38,9 @@ import App.ZApplication
...
@@ -38,6 +38,9 @@ import App.ZApplication
import
Zope2
import
Zope2
import
ZPublisher
import
ZPublisher
from
zope.event
import
notify
from
zope.app
import
appsetup
app
=
None
app
=
None
startup_time
=
asctime
()
startup_time
=
asctime
()
...
@@ -74,6 +77,8 @@ def startup():
...
@@ -74,6 +77,8 @@ def startup():
else
:
else
:
DB
=
ZODB
.
DB
(
m
.
Storage
,
databases
=
databases
)
DB
=
ZODB
.
DB
(
m
.
Storage
,
databases
=
databases
)
notify
(
appsetup
.
interfaces
.
DatabaseOpened
(
DB
))
Globals
.
BobobaseName
=
DB
.
getName
()
Globals
.
BobobaseName
=
DB
.
getName
()
if
DB
.
getActivityMonitor
()
is
None
:
if
DB
.
getActivityMonitor
()
is
None
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment