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
e8f7894e
Commit
e8f7894e
authored
Jun 16, 2010
by
Godefroid Chapelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
also notify DatabaseOpenedWithRoot
parent
51264c45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/Zope2/App/startup.py
src/Zope2/App/startup.py
+6
-3
No files found.
src/Zope2/App/startup.py
View file @
e8f7894e
...
...
@@ -16,6 +16,7 @@
from
zope.component
import
queryMultiAdapter
from
zope.event
import
notify
from
zope.processlifetime
import
DatabaseOpened
from
zope.processlifetime
import
DatabaseOpenedWithRoot
from
AccessControl.SecurityManagement
import
newSecurityManager
from
AccessControl.SecurityManagement
import
noSecurityManager
...
...
@@ -134,6 +135,8 @@ def startup():
global
startup_time
startup_time
=
asctime
()
notify
(
DatabaseOpenedWithRoot
(
DB
))
Zope2
.
zpublisher_transactions_manager
=
TransactionsManager
()
Zope2
.
zpublisher_exception_hook
=
zpublisher_exception_hook
Zope2
.
zpublisher_validated_hook
=
validated_hook
...
...
@@ -206,7 +209,7 @@ class ZPublisherExceptionHook:
else
:
error_log_url
=
log
.
raising
((
t
,
v
,
traceback
))
if
(
REQUEST
is
None
or
if
(
REQUEST
is
None
or
(
getattr
(
REQUEST
.
get
(
'RESPONSE'
,
None
),
'_error_format'
,
''
)
!=
'text/html'
)):
raise
t
,
v
,
traceback
...
...
@@ -264,8 +267,8 @@ class ZPublisherExceptionHook:
REQUEST
[
'AUTHENTICATED_USER'
]
=
AccessControl
.
User
.
nobody
try
:
result
=
f
(
client
,
REQUEST
,
t
,
v
,
traceback
,
result
=
f
(
client
,
REQUEST
,
t
,
v
,
traceback
,
error_log_url
=
error_log_url
)
if
result
is
not
None
:
t
,
v
,
traceback
=
result
...
...
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