What do those child functions do? If they are controller actions, typically 
they would return a dict, and then a related view would be executed, with 
the generated HTML returned to the browser. In this case, though, those 
functions wouldn't be returning anything to the browser, so do they have 
some side effect that you're interested in triggering? What are you 
actually trying to achieve?

Anthony

On Sunday, March 15, 2015 at 2:01:23 PM UTC-4, Alex Glaros wrote:
>
> Is there a way to execute functions within functions without leaving the 
> parent function?
>
> E.g.,
>
> def redirect_after_login(form): 
>     URL('first_child_function', vars=dict(theSubject = 'from Alex'))
>     URL('second_child_function', vars=dict(theSubject = 'from Alex'))
>     URL('third_child_function', vars=dict(theSubject = 'from Alex'))
>     redirect(URL('information_center'))
>     return dict(form=form())
>
> thanks,
>
> Alex Glaros
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to