>
>  - if you define your models carefully with requires parameters 
> (validators) in web2py, the SQLFORM object will use them, and you can 
> trigger the use of those validators via your REST API (i forget the exact 
> call, but there is something that does validation and insert/update in the 
> recent releases of web2py)


db.mytable.validate_and_insert(...)
db.mytable.validate_and_update(...)

Those methods will run all the validators defined for the table fields 
before doing the insert/update.

Anthony

-- 



Reply via email to