* Chris Withers (chrisw@nipltd.com) [010419 03:52]:
The Doctor What wrote:
--- /tmp/ZPublisher.orig/HTTPResponse.py Mon Feb 12 12:53:20 2001 +++ HTTPResponse.py Wed Apr 18 10:29:36 2001 @@ -471,9 +471,11 @@ tb=self.format_exception(t,v,tb,200) tb=join(tb,'\n') tb=self.quoteHTML(tb) - if self.debug_mode: _tbopen, _tbclose = '<PRE>', '</PRE>' - else: _tbopen, _tbclose = '<!--', '-->' - return "\n%s\n%s\n%s" % (_tbopen, tb, _tbclose) + if self.debug_mode: + _tbopen, _tbclose = '<PRE>', '</PRE>' + return "\n%s\n%s\n%s" % (_tbopen, tb, _tbclose) + else: + return "\n"
Cool, I've stuck this in the collector. Let's pray this one doesn't get ignored as well (I'd really like to see someone argue why its a bad idea!)
Unfortunately, I have a reason: It kills the traceback for hardcoded error pages. :-( This would be great if you have *no* hardcoded pages except in the case of a catastrophic failure (ie, the error page produces an error. Ciao! -- You have been infected by the Unix variant of the "love bug" virus. Please delet a bunch of files and forward this message to everyone you know. The Doctor What: "What, Doctor What" http://docwhat.gerf.org/ docwhat@gerf.org KF6VNC