You uness you are customizing export_to_csv_file you can just do def myaction(): import cStringIO file = cStringIO.StringIO() db(...).select().export_to_csv_file(file) return file.getvalue()
and call with http://...../myaction.csv so that you get the right content-type. The .csv does all the trink On Dec 19, 8:24 am, vvk <varunk.ap...@gmail.com> wrote: > I'm creating a csv file using db_export_to_csv. I want to make this > csv file downloadable. > "Download" function isn't allowing me to download this csv file > because it's not present in any table. I thought of exporting csv file > directly into a table, but unable to find any syntax for that. Any > help would be greatly appreciated. -- 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.