[web2py] Re: problems with conditional login redirection on on_failed_authorization

2011-01-30 Thread Miguel Lopes
I'm still in need of help. Here's what I've managed to find. My problem is that if I don't use good credentials in the command line I get an exception because web2py is replying with the login_url. This suggests that the failedAuthHandler I'm using in auth.settings.on_failed_authorization is not

[web2py] Re: problems with conditional login redirection on on_failed_authorization

2011-01-30 Thread Niphlod
I'm on my way out as a first thing, try it with auth.settings.on_failed_authorization = failedAuthHandler() On Jan 30, 9:29 pm, Miguel Lopes mig.e.lo...@gmail.com wrote: I'm still in need of help. Here's what I've managed to find. My problem is that if I don't use good credentials in the

[web2py] Re: problems with conditional login redirection on on_failed_authorization

2011-01-30 Thread Niphlod
try with auth.settings.on_failed_authorization = failedAuthHandlerandler() it works for me ^_^ On Jan 30, 9:29 pm, Miguel Lopes mig.e.lo...@gmail.com wrote: I'm still in need of help. Here's what I've managed to find. My problem is that if I don't use good credentials in the command line I

Re: [web2py] Re: problems with conditional login redirection on on_failed_authorization

2011-01-30 Thread Miguel Lopes
On Sun, Jan 30, 2011 at 9:16 PM, Niphlod niph...@gmail.com wrote: try with auth.settings.on_failed_authorization = failedAuthHandlerandler()  it works for me ^_^ Not for me! And I can't see how. Miguel

[web2py] Re: problems with conditional login redirection on on_failed_authorization

2011-01-30 Thread Niphlod
sorry this is subtle to spot, but authentication and authorization is a different thing and it's managed differently whether you are allowing basic login or not I did an incorrect assumption making my tests and replying before if you try with the decorator