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
9497e8ef
Commit
9497e8ef
authored
Jun 21, 2009
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly handle unauthorized exceptions in the ZPublisherExceptionHook.
parent
0c05765a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
doc/CHANGES.rst
doc/CHANGES.rst
+4
-0
src/Zope2/App/startup.py
src/Zope2/App/startup.py
+2
-1
No files found.
doc/CHANGES.rst
View file @
9497e8ef
...
...
@@ -16,6 +16,10 @@ Features Added
* ZODB 3.9.0b2
Bugs Fixed
++++++++++
- Correctly handle unauthorized exceptions in the ZPublisherExceptionHook.
Zope 2.12.0 b2 (2009/05/27)
---------------------------
...
...
src/Zope2/App/startup.py
View file @
9497e8ef
...
...
@@ -24,6 +24,7 @@ from App.config import getConfiguration
from
time
import
asctime
from
types
import
StringType
,
ListType
from
zExceptions
import
Redirect
from
zExceptions
import
Unauthorized
from
ZODB.POSException
import
ConflictError
import
transaction
import
AccessControl.User
...
...
@@ -170,7 +171,7 @@ class ZPublisherExceptionHook:
if
t
.
lower
()
in
(
'unauthorized'
,
'redirect'
):
raise
else
:
if
t
is
SystemExit
or
t
is
Redirect
:
if
t
is
SystemExit
or
t
is
Redirect
or
t
is
Unauthorized
:
raise
if
issubclass
(
t
,
ConflictError
):
...
...
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