Re: [web2py] Re: Crud.update Multiple

2011-09-14 Thread Richard Vézina
Hello Massimo, I will try to make myself clear... My objective is to manage the insertion of an arbitrary number of records in a second table with a normalised "one to many" relation between 2 tables. I had this Idea : I would make a form and use the virtual field to get the number of rows to i

Re: [web2py] Re: Crud.update Multiple

2011-09-11 Thread Richard Vézina
I made this a wild ago, but never go any further... Here the thread... http://groups.google.com/group/web2py/browse_thread/thread/50af0d67554c94d9/dfc30ce6fb4455eb?pli=1 Richard On Sun, Sep 11, 2011 at 3:55 AM, Serbitar wrote: > Sure, I know that. But I am explicitly looking for the conveni

Re: [web2py] Re: Crud.update Multiple

2011-09-10 Thread Richard Vézina
for fieldvalue in list of values:     db.person.insert(name=fieldvalue) Off coarse you can do it for multiple values : list1=[(valfield1,valfield2,valfield3),(etc.),(etc.)] # Note : first tuples = first rows you want to insert for field1, field2, field3 in list1 db.person.insert(field1=fiel