You can use the python csv module directly: import csv writer = csv.writer(open('output.csv', 'w')) writer.writerow(your_iterable_data)
You can see all of the options here: http://docs.python.org/library/csv.html On Dec 9, 2:11 am, GhostRider <kenneth.t.lundst...@gmail.com> wrote: > Hello everyone, > > I made a function that gathers data from many tabels and shows it on > the website. Now customer would like to export this data to a CSV > file. Copy&Paste is not a option. > > When looking for CSV export I could only find examples of exporting > tables to a CSV file. > > How would you do this? As I have no idea how to do this I used JSON > and put everything into a JSON variable. But that works nicely when > opening the CSV file with OpenOffice but not with Microsoft. > > I think the columns should the separated with a ; and not , to work > better i Microsofts world. > > Kenneth -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.