[Zope] trapping login errors/exceptions

2000-10-26 Thread Henny van der Linde
Hi, This should be very simple but I can't get it to work. I have a method called do_login. This method can't be viewed by anonymous users. When I call this method just with a standard login screen is presented as expected. Now I want tot trap login errors with a try construction such as this:

Re: [Zope] trapping login errors/exceptions

2000-10-27 Thread Chris Withers
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

Re: [Zope] trapping login errors/exceptions

2000-10-27 Thread Henny van der Linde
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, LoginMan

Re: [Zope] trapping login errors/exceptions

2000-10-30 Thread Chris Withers
Henny van der Linde wrote: > Thanks. I already thought about using Loginmanager but we still use Zope > 2.1.6. Why? ;-) > 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. Yeah, I totally a

Re: [Zope] trapping login errors/exceptions

2000-10-30 Thread Henny van der Linde
Hi, - Original Message - From: "Chris Withers" <[EMAIL PROTECTED]> To: "Henny van der Linde" <[EMAIL PROTECTED]> Cc: "Zope mailing list" <[EMAIL PROTECTED]> Sent: Monday, October 30, 2000 11:50 AM Subject: Re: [Zope] trapping login