[web2py] Re: CRUD onaccept question

2012-03-09 Thread Gian Luca Decurtins
Thank you Alan! > onaccept=lambda form: locate(request.args(0)) It now works as expected! -Luca.

[web2py] Re: CRUD onaccept question

2012-03-09 Thread Alan Etkin
> "... onvalidation, oncreate, onupdate and ondelete are callback > functions. All > but ondelete take a form object as input. ..." Sorry, those are SQLFORM.grid arguments, the CRUD method signatures are at 7.4.3 (Methods)

[web2py] Re: CRUD onaccept question

2012-03-09 Thread Alan Etkin
"... onvalidation, oncreate, onupdate and ondelete are callback functions. All but ondelete take a form object as input. ..." I'd try replacing onaccept with something like this (not tested): onaccept: lambda form: locate(request.args(0)) That way the action will call the function after the form