[Zope-Checkins] CVS: Packages/ZPublisher - HTTPResponse.py:1.51
Evan Simpson
evan@zope.com
Tue, 13 Nov 2001 14:28:33 -0500
Update of /cvs-repository/Packages/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv23345/ZPublisher
Modified Files:
HTTPResponse.py
Log Message:
Add a little javascript to make tracebacks visible. It works in Mozilla,
where source viewing is unreliable.
=== Packages/ZPublisher/HTTPResponse.py 1.50 => 1.51 ===
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):