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

Chris Withers chrisw@nipltd.com
Sat, 02 Mar 2002 20:00:28 +0000


"Matthew T. Kromer" wrote:
> 
> 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. 

My thoughts exactly!

> 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).

Erk. Well, is it documented anywhere? I guess I'll have to have a dig :-(

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

Is anyone gonna complain if I just strip these out?

cheers,

Chris