Re: [web2py] Re: delete row question

2012-05-25 Thread Roberto Perdomo
_after_delete.append is a great improvement. I really like to run a function after the user press the default delete button from a smartgrid, I can hide this button and add a custom delete button, but whit _after_delete.append(function) is a best solution. Thanks. 2012/5/25 Anthony : > Not in cu

[web2py] Re: delete row question

2012-05-25 Thread Anthony
Not in current stable, but in trunk, you can do: db.mytable._after_delete.append(myfunction) The _after_delete attribute of the table is a list of functions that take the table as an argument and are run after any delete is performed. There's also _before_delete as well as similar lists for bef