[Zope] trapping login errors/exceptions

Henny van der Linde Henny van der Linde" <info@inline-info.nl
Fri, 27 Oct 2000 23:14:07 +0200


Hi,


> Henny van der Linde wrote:
>
> > In this construction the call to do_login always raises the exception
> > Unauthorized instead of presenting the standard login screen.
> >
> > How do I trap login errors in an elegant way?
>
> You can't, with the standard Zope acl_users.
>
> IIUC, LoginManager allows you to do exactly what you're talking about.
>
> cheers,
>
> Chris

Thanks. I already thought about using Loginmanager but we still use Zope
2.1.6.

I'm very commited, to and happy with Zope but I was amazed that you can't
trap Unauthorized exception like that. I'ts seems such a basic
functionality.

cheers,

Henny