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
36eb9b05
Commit
36eb9b05
authored
Aug 04, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug in handling SystemExit.
We can't pretify it, but at least we can restart.
parent
6a040107
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
lib/python/Zope/__init__.py
lib/python/Zope/__init__.py
+4
-2
No files found.
lib/python/Zope/__init__.py
View file @
36eb9b05
...
...
@@ -137,7 +137,7 @@ sys.modules['Main']=sys.modules['Zope']
import
ZODB.POSException
,
ZPublisher
,
string
,
ZPublisher
,
AccessControl
.
User
import
ExtensionClass
def
test
(
*
args
,
**
kw
):
def
debug
(
*
args
,
**
kw
):
return
apply
(
ZPublisher
.
test
,(
'Zope'
,)
+
args
,
kw
)
class
RequestContainer
(
ExtensionClass
.
Base
):
...
...
@@ -152,7 +152,9 @@ def zpublisher_exception_hook(
ListType
=
type
([]),
):
try
:
if
type
(
t
)
is
StringType
and
lower
(
t
)
in
(
'unauthorized'
,
'redirect'
):
if
((
type
(
t
)
is
StringType
and
lower
(
t
)
in
(
'unauthorized'
,
'redirect'
))
or
t
is
SystemExit
):
raise
if
t
is
ConflictError
:
# now what
...
...
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