Since the export_to_csv_file acts on a rows object you can select the 
fields to your liking.

rows = db(qry).select(*list_of_fields_to_export)
rows.export_to_csv_file(open(...))

Denes

On Saturday, January 16, 2016 at 11:27:18 PM UTC-5, Alex Glaros wrote:
>
> is there a way to import_from_csv without primary key from the old 
> system, or export_to_csv without the primary key?
>
> otherwise, I have to edit the file in excel and delete the primary key 
> column before importing the file
>
> thanks
>
> Alex Glaros
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to