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__ <[email protected]> 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 [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
-~----------~----~----~----~------~----~------~--~---