[ZPT] Page Template as standard_error_message

Evan Simpson evan@zope.com
Fri, 21 Sep 2001 11:56:51 -0400


Lynn Walton wrote:

> Evan, I've got zope 2.4.1 and can get a standard_error_message template
> to work, but I can't access
> error_message, error_type, etc I've tried various namespaces to no
> avail. Can you explain how you're supposed to
> access those?


Through "options", like this:

<html><head><title>Panic!</title></head>
<body>
<table border="0" width="100%">
<tr valign="TOP">
<td>
<h2>Big Bad Error</h2>
<p>Zope has encountered a horrible error while publishing!!!!!!!!!!</p>
<h4 tal:content="options/error_type">Type</h4>
<h4 tal:content="options/error_value">Value</h4>
<h4 tal:content="options/error_message">Message</h4>
</td></tr>
</table>
</body>
</html>

Cheers,

Evan @ Zope