[Zope] standard_error_message wired variable expansion
Dieter Maurer
dieter@handshake.de
Tue, 12 Nov 2002 20:38:09 +0100
Ulrich Wisser writes:
> 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.
It is not lost. Instead, it is not yet determined:
Authentication happens only at the very end of (a successful) traversal.
It does not happen, when the traversal is aborted due to any error,
e.g. a "Not found" error.
> 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>
Apparently, the code in "ZPublishers" traversal does not provide
this information.
Use "<dtml-var error_value missing>".
Dieter