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
a924ea43
Commit
a924ea43
authored
Nov 13, 2001
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a little javascript to make tracebacks visible. It works in Mozilla,
where source viewing is unreliable.
parent
efdb6c7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
lib/python/ZPublisher/HTTPResponse.py
lib/python/ZPublisher/HTTPResponse.py
+5
-3
No files found.
lib/python/ZPublisher/HTTPResponse.py
View file @
a924ea43
...
...
@@ -84,8 +84,8 @@
##############################################################################
'''CGI Response Output formatter
$Id: HTTPResponse.py,v 1.5
0 2001/10/22 20:07:40 jeremy
Exp $'''
__version__
=
'$Revision: 1.5
0
$'
[
11
:
-
2
]
$Id: HTTPResponse.py,v 1.5
1 2001/11/13 19:28:33 evan
Exp $'''
__version__
=
'$Revision: 1.5
1
$'
[
11
:
-
2
]
import
string
,
types
,
sys
,
re
from
string
import
find
,
rfind
,
lower
,
upper
,
strip
,
split
,
join
,
translate
...
...
@@ -472,7 +472,9 @@ class HTTPResponse(BaseResponse):
tb
=
join
(
tb
,
'
\
n
'
)
tb
=
self
.
quoteHTML
(
tb
)
if
self
.
debug_mode
:
_tbopen
,
_tbclose
=
'<PRE>'
,
'</PRE>'
else
:
_tbopen
,
_tbclose
=
'<!--'
,
'-->'
else
:
_tbopen
,
_tbclose
=
'''<pre
onclick="this.firstChild.data=this.lastChild.data">
§<!--'''
,
'--></pre>'
return
"
\
n
%s
\
n
%s
\
n
%s"
%
(
_tbopen
,
tb
,
_tbclose
)
def
redirect
(
self
,
location
,
status
=
302
,
lock
=
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