[Zope] Handle "Unauthorized" error message
Dieter Maurer
dieter@handshake.de
Fri, 4 Jul 2003 21:56:01 +0200
Paolo Dina wrote at 2003-7-3 10:03 +0200:
> I have a part of my site which is protected by password.
> All works fine and this is really a simple task with Zope(v.2.5.1),
> but now, how to prevent the unauthorized user to read the error message:
>
> Site Error
> An error was encountered while publishing this resource.
> Unauthorized
> You are not authorized to access this resource.
> blahblah
>
> How do i replace that with something more friendly?(a redirect to an
> error page would be great too).
I think modern Zope versions (2.6.x) route Unauthorized
exceptions through "standard_error_message".
Dieter