Anthony, TSV works pretty well. Now I have to figure out how to get rid of the html formatting I've put in, but I think it does the trick.
On Friday, November 1, 2013 2:14:30 AM UTC+8, Anthony wrote: > > If you can live with tab-delimited instead of comma delimited, the TSV > format does exactly what you want (it actually downloads with a .csv > extension, so it will open up in Excel as is). If you need CSV, perhaps you > could copy the gluon.sqlhtml.ExportTSV class and just change the delimiter > to a comma. Note, the HTML download also uses represent. > > Also, outside of the grid, if you want to use represent in CSV exports, > you can do rows.export_to_csv(..., represent=True). > > Anthony > > On Thursday, October 31, 2013 1:50:08 AM UTC-4, weheh wrote: >> >> My grid has a bunch of its data created with .represent. I want to export >> this in CSV format. The export class dumps raw underlying data without the >> represent values shown by the grid. Is there a way to get export to put out >> the represented format used by grid? Or do I have to write a custom >> exporter that loops through all the rows and does lambda substitutions >> again? >> > -- 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/groups/opt_out.