Re: [web2py] Re: Import from csv file with original id's

2013-12-09 Thread Jonathan Lundell
On 9 Dec 2013, at 8:09 AM, Gael Princivalle wrote: > Thanks Anthony but in any case I've got the same web2py answer: > 'DAL' object has no attribute 'products' > > How is it possible ? Try doing your drop in a separate request. My guess is that you need to trigger a migrate cycle after the dro

[web2py] Re: Import from csv file with original id's

2013-12-09 Thread Gael Princivalle
Thanks Anthony but in any case I've got the same web2py answer: 'DAL' object has no attribute 'products' How is it possible ? Il giorno lunedì 9 dicembre 2013 17:03:54 UTC+1, Anthony ha scritto: > > I think you want db.products.truncate(), not db.products.drop(). > > Anthony > > On Monday, Decemb

[web2py] Re: Import from csv file with original id's

2013-12-09 Thread Anthony
I think you want db.products.truncate(), not db.products.drop(). Anthony On Monday, December 9, 2013 8:03:24 AM UTC-5, Gael Princivalle wrote: > > Hello all. > > I need to import in one table data keeping original id's. > I know that I have to drop the table first, but when I want to import the