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 <[email protected]> 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 [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