Thank you Massimo, I've sent you an email.
Am Mittwoch, 23. Oktober 2013 00:36:37 UTC+2 schrieb Massimo Di Pierro: > > Please make a minimalist app to reproduce and post it or email it to me. > > On Saturday, 19 October 2013 11:25:34 UTC-5, Andreas Wienes wrote: >> >> >> Hey guys, >> >> I'm using web2py 2.7.4 and get some strange behavior with some redirects. >> >> If I click on "change password" in the user navbar I want to get redirect >> to "/default/user/change_password" instead I get redirected to >> "/default/user/profile". It's the same for the logout link and it seems the >> problem happens for all links containing "user". Finally my browser is >> telling me, that there ar too many redirects. >> >> I modified the user() method in this way: >> >> def user(): >> login_form=auth.login() >> register_form=auth.register() >> reset_password_form=auth.request_reset_password() >> return locals() >> >> This is were I want to go by following the link: >> >> def edit_profile(): >> user_form = auth.profile(onaccept=lambda user_form: >> update_skills_and_cities()) >> user = auth.user >> user_links=db(db.link.user_id==user.id).select() >> return locals() >> (There is no auth.requires_login() in front of it.) >> >> This is the content of user.html: >> >> {{extend 'layout.html'}} >> >> {{if request.args(0)=='request_reset_password':}} >> {{=reset_password_form}} >> >> {{elif request.args(0)=='change_password': >> ... >> }} >> >> {{elif request.args(0)=='logout': >> auth.logout() >> }} >> >> {{elif request.args(0)=='profile':}} >> .... >> >> {{elif request.args(0)=='register' or request.args(0)=='login':}} >> .... >> >> {{else:}} >> redirect(URL('default', 'index')) >> {{pass}} >> >> In db.py I got the following settings: >> >> auth.settings.login_next = URL('index') >> auth.settings.logout_next = URL('index') >> auth.settings.profile_next = URL('index') >> auth.settings.register_next = URL('user', args='login') >> auth.settings.retrieve_username_next = URL('index') >> auth.settings.retrieve_password_next = URL('index') >> auth.settings.change_password_next = URL('index') >> auth.settings.request_reset_password_next = URL('user', args='login') >> auth.settings.reset_password_next = URL('user', args='login') >> auth.settings.verify_email_next = URL('user', args='login') >> >> >> I already cleaned my browser cache and also restarted my browser and >> web2py. >> >> Hope you can help me with this issue. >> >> - Andreas >> > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.