I want to execute some code, after updating a user profile. So I created  a 
method edit_profile inside default.py

def edit_profile():
    user_form = auth.profile()
    if user_form.process().accepted:
        # ... do something here ...
        redirect(URL('default','index'))
    return dict(user_form=user_form)

After clicking the submit button, I get redirect, but the changes won't be 
saved. Any idea what's wrong with my code?

All the best
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.

Reply via email to