On Sunday, January 31, 2016 at 8:57:31 AM UTC-5, Pierre wrote:
>
> where is the preferred location for callbacks function: after_delete,
> after_insert, etc.....can these go to a module instead of a .db file ?
>
Put them wherever you want. A module is fine if that organization works
better for you.
> is redirect(URL('controller',args=....,vars=....) the preferred choice for
> 'actions concatenation' ?
>
What do you mean by "actions concatenation"?
> is there a way to pass form.vars to another controller instead of using a
> after_insert callback ?
>
It's not clear how this relates to after_insert callbacks or what you are
trying to do, but generally, you could store the data in the session in one
action if it needs to be persisted until a later action is called. If
you're doing a redirect to the other controller, you could also include the
data in the query string of the URL.
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 [email protected].
For more options, visit https://groups.google.com/d/optout.