[web2py] Re: Upload to Insert csv.

2011-05-30 Thread pbreit
Something like this: http://web2py.com/book/default/chapter/06?search=csv#Exporting-and-Importing-Data

Re: [web2py] Re: Upload to Insert csv.

2011-05-30 Thread David J.
Yes; But I was wondering if could be done in one step without saving the file first; just auto importing the uploaded file? On 5/30/11 2:20 PM, pbreit wrote: Something like this: http://web2py.com/book/default/chapter/06?search=csv#Exporting-and-Importing-Data

Re: [web2py] Re: Upload to Insert csv.

2011-05-30 Thread David J.
Yes I see it now. Thanks. def import_and_sync(): form = FORM(INPUT(_type='file', _name='data'), INPUT(_type='submit')) if form.accepts(request.vars): db.import_from_csv_file(form.vars.data.file,unique=False) # for every table for table in db.tables: #