On Tuesday, June 26, 2012 6:17:58 PM UTC-4, Don_X wrote:
>
> Hello Anthony, ...
>
> I have tried the suggested line of code ...
> the following way, based on my function index(): in the controller the 
> filter field is 'email_check'
>
> so I have entered :
> db.auth_user.insert(**db.auth_user.email_check(form.vars))
>  but I get an error msg ! .. should I put it in brakets ? in parenthesis 
> ?? .. ...


No, you should literally use the exact code I included:

db.auth_user.insert(**db.auth_user._filter_fields(form.vars))

The _filter_fields() method takes dictionary-like object and filters out 
any items that are not fields in the table. So, if you pass form.vars to 
it, it will remove any items that don't belong to the db.auth_user table 
(in this case, the email_check variable).

Anthony
 

-- 



Reply via email to