Massimo, This works:
auth.settings.login_next=URL(r=request, c='crudtool', f='index') in db.py, when I login I am redirected to http://127.0.0.1:8000/mock/crudtool/index But this doesn't work: auth.settings.logout_next=URL(r=request, c='authtool', f='login') in db.py, in the controller authtool the function: def logout(): return dict() when I logout I get an invalid function error which is correct, the address in the browser reads: http://127.0.0.1:8000/mock/authtool/user/login this: auth.settings.login_url=URL(r=request, c='authtool', f='login') doesn't work either. auth.settings.... also didn't solve the problem described in my previous post: Furthermore I created a controller crudtool in which I will define crud actions. When I expose the index function in crudtool: @auth.requires_login() def index(): return dict(message="hello from crudtool.py") it redirects to: http://127.0.0.1:8000/mock/crudtool/user/login, but there is no function user and args login. Whereas it should redirect me to http://127.0.0.1:8000/mock/authtool/login I thought I would solve this using the next attribute... Kind regards, Annet --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

