I do not understand. You can do this:

if success:
    return dict()
else:
    redirect(somewhere)

but you cannot do both at the same time.

technically redirect raises HTTP(303) while return raises HTTP(200).

massimo

On Sep 9, 3:03 pm, __Kyo__ <iacastil...@gmail.com> wrote:
> Is there any way to include return and redirect at same time, in one
> function?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to