You can set it in model or controller, doesn't matter (as long as you don't
make database queries inside models, which you probably don't do).
Yes, you can append multiple callbacks. Web2py can use these lists for
internal stuff, so you should only append to it.
Marin
On Sun, Jun 9, 2013 at 2:1
What does "append" hint at in the naming of the hooks for data base events?
I want to do something when a record is deleted from a grid.
Is there any harm if I call _before_delete.append in the controller
function, or should the callback be set in the model?
I guess it doesn't matter since both
2 matches
Mail list logo