[web2py] Re: Looping thru form.vars

2012-08-10 Thread lyn2py
Thanks Anthony, that worked! On Saturday, August 11, 2012 12:04:58 AM UTC+8, Anthony wrote: > > Once the data have been inserted into the db, the id of the inserted > record is stored in form.vars.id, which is a DAL Reference object. > Assuming you don't want that value, just add a condition tes

[web2py] Re: Looping thru form.vars

2012-08-10 Thread Anthony
Once the data have been inserted into the db, the id of the inserted record is stored in form.vars.id, which is a DAL Reference object. Assuming you don't want that value, just add a condition testing for key != 'id'. If you do want the id included, then you can replace val with str(val) in your