Validators apply to forms only not database insert. This is for speed but also because the workflow would be unclear: how would error be reported? As exceptions?
I guess you can define your own insert function that validates before insert and throws an exception on failed validation. Massimo On Nov 9, 7:48 am, fnerdwq <fner...@googlemail.com> wrote: > Hi .*, > > is there a way of making web2py run the validators configured in the > model on a dataset inserted via a direct db.table.insert statement? It > looks like I'm able to insert any kind of data, it's validated... > > Thanks and Bye, > Frederik --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---