Without respecifying the validators is there a way to get them
imported? This seems to be a fairly significant hole. Is there
something I'm missing?
-Jim
On 6/3/2011 1:26 PM, Massimo Di Pierro wrote:
Mind that DAL(...,auto_import=True) does NOT import validators.
On Jun 3, 12:13 pm, "j...@qlf.com"<j...@qlf.com> wrote:
Perfect, thanks!
From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of
Ross Peoples
Sent: Friday, June 03, 2011 12:11 PM
To: web2py@googlegroups.com
Subject: [web2py] Re: Inserting records using DAL outside of web2py
Setting requires only performs validation with CRUD and SQLFORM. Doing a direct
insert does not cause validation to be checked. Try using validate_and_insert()
instead of insert().
--
Jim Steil
VP of Information Technology
Quality Liquid Feeds, Inc.
608.935.2345 office
608.341.9896 cell