I'v been fiddling with these ideas.  They are very similar to the 
flask/sqlalchemy solutions I've seen in my other queries.  Thanks a ton for 
the suggestions.  This is a pretty nice community.

On Sunday, July 29, 2012 11:16:53 PM UTC-6, Anthony wrote:
>
>  - 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