It works for me $ python web2py.py -S test -M ... >>> import StringIO >>> s=StringIO.StringIO() >>> db.export_to_csv_file(s)
which version of web2py are you using? Massimo On Feb 4, 12:00 am, INeedHelp <[email protected]> wrote: > i am doing > def export(): > s=StringIO.StringIO() > db.export_to_csv_file(s) > response.headers['Content-Type']='text/csv' > return s.getvalue() > > when run it, i have an error > KeyError: 'export_to_csv_file' --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" 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 -~----------~----~----~----~------~----~------~--~---

