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
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
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
3 matches
Mail list logo