Re: [web2py] db.export_to_csv_file error

2010-01-22 Thread Alexandre Andrade
really thanks. 2010/1/22 Thadeus Burgess > You have to define your tables before you export to csv, web2py will > only export the tables it knows about. > > so > > db = DAL('...') > > db.define_table(...) > > db.export_to_csv_file(open(file)) > > -Thadeus > > > > > > On Fri, Jan 22, 2010 at 12

Re: [web2py] db.export_to_csv_file error

2010-01-22 Thread Thadeus Burgess
You have to define your tables before you export to csv, web2py will only export the tables it knows about. so db = DAL('...') db.define_table(...) db.export_to_csv_file(open(file)) -Thadeus On Fri, Jan 22, 2010 at 12:51 PM, Alexandre Andrade wrote: > I trying to export a sqlite db with

[web2py] db.export_to_csv_file error

2010-01-22 Thread Alexandre Andrade
I trying to export a sqlite db with db = DAL('sqlite://storage.sqlite') db.export_to_csv_file(open('/home/www-data/web2py/convenios.csv', 'wb')) but it creates a file with only: END What could be wrong? Someone have this problem before? Exporting each table works. -- Ate