[ZPT] Query on tracebacks

Evan Simpson evan@4-am.com
Fri, 24 May 2002 10:07:26 -0500


Kevin Littlejohn wrote:
> If we do this in dtml, we get error_tb and similar variables to play
> with.  But I'm starting to think they may be "magic variables" - not
> actually in the namespace when standard_error_message is called, as
> such, thus not available to a TAL equivalent.  Is that true?

They are in the 'options' namespace, since they are passed as keyword 
arguments.  For example:

<h2 tal:content="options/error_message">The Message</h2>

You must be using a recent 2.5.x Zope in order to use anything but DTML 
as a standard_error_message, however.

Cheers,

Evan @ 4-am