[Zope] Site Error Messages

emf mindlace@imeme.net
Mon, 19 Nov 2001 23:50:34 -0700


This is a multi-part message in MIME format.
--------------080608060500050902040001
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Michael wrote:

> I am trying to disable the traceback which appears in site error messages 
> under "view source".  I located Application.py under lib/python/OFS and also 
> HTTPResponse.py under lib/python/ZPublisher, but am not sure where to go from 
> here.
> 
> I was able to make "site maintainer" hot using mailto:, and got rid of the 
> paragraph telling you to view source, but I cannot figure out how to 
> eliminate the traceback.  Any suggestions?
> 


Edit HTTPResponse.py.  Attached is a diff, changing the _traceback 
function to not report anything if the -D flag is not specified.

IMHO, you'll probably regret this :)

-- 
ethan mindlace fremen  |  iMeme - The most full featured Zope Host
http://mindlace.net    |  Root, ZEO, MySQL, Mailman, Unlimited Domains
iMeme Partner          |  http://iMeme.net
"It is our desire to remain what we are that limits us. -- Project 2501"

--------------080608060500050902040001
Content-Type: text/plain;
 name="HTTPResponse.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="HTTPResponse.diff"

474c474
<         else:               _tbopen, _tbclose = '<!--',  '-->'
---
>         else:               _tbopen, tb, _tbclose = '','',''

--------------080608060500050902040001--