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
e3164365
Commit
e3164365
authored
Jul 13, 2009
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged c101854 from 2.12 branch
parent
3c4a6f2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
22 deletions
+17
-22
src/Zope2/App/startup.py
src/Zope2/App/startup.py
+17
-22
No files found.
src/Zope2/App/startup.py
View file @
e3164365
...
...
@@ -167,29 +167,24 @@ class ZPublisherExceptionHook:
def
__call__
(
self
,
published
,
REQUEST
,
t
,
v
,
traceback
):
try
:
if
isinstance
(
t
,
StringType
):
if
t
.
lower
()
in
(
'unauthorized'
,
'redirect'
):
raise
else
:
if
(
t
is
SystemExit
or
issubclass
(
t
,
Redirect
)
or
issubclass
(
t
,
Unauthorized
)):
raise
if
t
is
SystemExit
or
issubclass
(
t
,
Redirect
):
raise
if
issubclass
(
t
,
ConflictError
):
self
.
logConflicts
(
v
,
REQUEST
)
raise
ZPublisher
.
Retry
(
t
,
v
,
traceback
)
if
t
is
ZPublisher
.
Retry
:
try
:
v
.
reraise
()
except
:
# we catch the re-raised exception so that it gets
# stored in the error log and gets rendered with
# standard_error_message
t
,
v
,
traceback
=
sys
.
exc_info
()
if
issubclass
(
t
,
ConflictError
):
self
.
logConflicts
(
v
,
REQUEST
)
raise
ZPublisher
.
Retry
(
t
,
v
,
traceback
)
if
t
is
ZPublisher
.
Retry
:
try
:
v
.
reraise
()
except
:
# we catch the re-raised exception so that it gets
# stored in the error log and gets rendered with
# standard_error_message
t
,
v
,
traceback
=
sys
.
exc_info
()
if
issubclass
(
t
,
ConflictError
):
# ouch, a user saw this conflict error :-(
self
.
unresolved_conflict_errors
+=
1
# ouch, a user saw this conflict error :-(
self
.
unresolved_conflict_errors
+=
1
try
:
log
=
aq_acquire
(
published
,
'__error_log__'
,
containment
=
1
)
...
...
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