Re: [web2py] ondelete and onaccept

2012-10-15 Thread David Sorrentino
Thanks Alan, This works fine. I just misunderstood the book. ;) Have a good day, David On 15 October 2012 01:47, Alan Etkin wrote: > For me the behavior is the expected (because the form was accepted and the > record deleted). Perhaps you can avoid executing onaccept inside the > handler like

Re: [web2py] ondelete and onaccept

2012-10-14 Thread Alan Etkin
For me the behavior is the expected (because the form was accepted and the record deleted). Perhaps you can avoid executing onaccept inside the handler like this: def myonaccept(form): if form.vars.delete_this_record return ... --

[web2py] ondelete and onaccept

2012-10-13 Thread David Sorrentino
Hi there, Maybe I just misunderstood the online book, but I would like to solve my doubts about this: In chaper #07, speaking about the CRUD method *ondelete*, the book says: ondelete is called in place of onaccept when a record is deleted via an > "update" form. > I added both to my *crud.updat