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
<[email protected]> wrote:
> 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.
>
>
>
> --
> Atenciosamente
>
> --
> =========================
> Alexandre Andrade
> Hipercenter.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to