On Sunday, April 9, 2017 at 10:57:08 PM UTC-4, Alfonso Serra wrote:
>
> Thanks Anthony, but thats the matter, redirection is not optional. It will 
> happen regardless. I would like not to redirect to make use of form.errors, 
> form.accepted to style the view.
>

The redirect happens only if the form is accepted and the password change 
is successful, so there will be no form.errors to preserve. I'm not sure 
what you mean about styling the view, but if you set a flag in the session 
indicating there has been a successful password change, you could use that 
to execute any conditional logic in the view.
 

> Other issue is that change password and profile shares the same view, so 
> there are multiple redirections going on clearing out session.flash.
>

I'm not sure what you mean by that. The .change_password() method does a 
single redirect. It might help if you show some code.

Anthony

-- 
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/d/optout.

Reply via email to