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
8560b3bf
Commit
8560b3bf
authored
Nov 07, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in printing tracebacks.
parent
65dd4bef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
lib/python/ZPublisher/Response.py
lib/python/ZPublisher/Response.py
+8
-2
No files found.
lib/python/ZPublisher/Response.py
View file @
8560b3bf
...
...
@@ -3,7 +3,7 @@
__doc__
=
'''CGI Response Output formatter
$Id: Response.py,v 1.
19 1997/10/29 18:46:55
jim Exp $'''
$Id: Response.py,v 1.
20 1997/11/07 14:59:18
jim Exp $'''
# Copyright
#
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne
...
...
@@ -55,6 +55,9 @@ $Id: Response.py,v 1.19 1997/10/29 18:46:55 jim Exp $'''
# (540) 371-6909
#
# $Log: Response.py,v $
# Revision 1.20 1997/11/07 14:59:18 jim
# Fixed bug in printing tracebacks.
#
# Revision 1.19 1997/10/29 18:46:55 jim
# Fixed leak in exception handler.
#
...
...
@@ -136,7 +139,7 @@ $Id: Response.py,v 1.19 1997/10/29 18:46:55 jim Exp $'''
#
#
#
__version__
=
'$Revision: 1.
19
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
20
$'
[
11
:
-
2
]
import
string
,
types
,
sys
,
regex
,
regsub
...
...
@@ -490,6 +493,7 @@ class Response:
def
exception
(
self
,
fatal
=
0
):
t
,
v
,
tb
=
sys
.
exc_type
,
sys
.
exc_value
,
sys
.
exc_traceback
stb
=
tb
# Abort running transaction, if any:
try
:
get_transaction
().
abort
()
...
...
@@ -513,6 +517,8 @@ class Response:
# Dont try so hard that we cause other problems ;)
pass
tb
=
stb
stb
=
None
self
.
setStatus
(
t
)
if
self
.
status
>=
300
and
self
.
status
<
400
:
if
type
(
v
)
==
types
.
StringType
and
absuri_re
.
match
(
v
)
>=
0
:
...
...
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