On Aug 3, 9:53 am, Fran <francisb...@googlemail.com> wrote: > This should do what you want: > crud.create(db.table, onvalidation=lambda: form: myvalidator(form)) > onvalidation callback runs before DB I/O > (onaccept callback is after DB I/O)
Actually, I see that SQLFORM's accepts() method includes an onvalidation callback as well...no need to used crud... F --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---