Amazing ! .. Viva python .. viva web2py ! This is pretty cool stuff !
thanks Anthony .. 2012/6/26 Anthony <abasta...@gmail.com> > > > 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 > > > -- > > > > -- William James nous dit : '' La plus grande découverte de ma génération est que l'être humain peut transformer sa vie simplement en modifiant sa maniére de penser.'' -------------- Le Don X --