[Zope] standard_error_message wired variable expansion

Ulrich Wisser Ulrich Wisser <u.wisser@publisher.de>
Mon, 11 Nov 2002 23:38:53 +0100


Hello,

i installed my own standard_error_message and it works fine
so far. I found that in case of a "NotFound" error the
AUTHENTICATED_USER is lost. But what is worse is, that I can
not display error_value. error_type is 'NotFound' and I can
display it, but if display error_value the Zope default
error message (<table ...) is shown. Please find an example
output below, here is the code

<dtml-var error_type>
<dtml-var error_value>

Any ideas how to display a correct error message? Even when
I display error_tb some variable will expand to this
ridiculous html table.

Thanks

Ulrich



NotFound
<TABLE BORDER="0" WIDTH="100%">
<TR VALIGN="TOP">

<TD WIDTH="10%" ALIGN="CENTER">
&nbsp;
</TD>

<TD WIDTH="90%">
  <H2>Site Error</H2>
  <P>An error was encountered while publishing this resource.
  </P>
  <P><STRONG>Resource not found</STRONG></P>
  
  Sorry, the requested resource does not exist.<p>Check the URL and try again.</p><p><b>Resource:</b> z
GET</p>
  <HR NOSHADE>

  <P>Troubleshooting Suggestions</P>

  <UL>
  <LI>The URL may be incorrect.</LI>
  <LI>The parameters passed to this resource may be incorrect.</LI>
  <LI>A resource that this resource relies on may be
      encountering an error.</LI>
  </UL>

  <P>For more detailed information about the error, please
  refer to the HTML source for this page.
  </P>

  <P>If the error persists please contact the site maintainer.
  Thank you for your patience.
  </P>
</TD></TR>
</TABLE>