[Zope-Coders] Re: [Zope] Trace Backs

Matthew T. Kromer matt@zope.com
Mon, 11 Feb 2002 10:48:29 -0500


Chris Withers wrote:

>I see so many requests like this.
>
>Is anyone gonna bitch if I make this change?
>
>cheers,
>
>Chris
>

That error message should be disabled (IMHO) if the -D flag is not 
present.  Right now it is embedded in an HTML comment if the -D flag is 
not present (so it is still visible in view source.)  I am not sure if 
you can easily modify the standard_error_page to do this -- what I think 
would be nice is that the traceback actually be explicitly embedded in 
the standard_error_page rather than implicitly tacked on by the 
publisher.  I am not sure if it can be -- it looks like there is a 
dictionary set up by SimpleItem but I'm not sure what else may define a 
raise_standardErrorMessage method (ie each object may be able to define 
its OWN error handler the way I read the code).

Keep in mind that the error is also coming back in the HTTP headers too, 
tacked on by the publisher.

>>
>>Can the trace backs for the error pages be removed from the source page as I
>>don't want them to be seen?
>>
-- 
Matt Kromer
Zope Corporation  http://www.zope.com/