On Aug 3, 9:53 am, Fran <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to