[web2py] Re: downloading a synthetic csv

2012-10-26 Thread Niphlod
do you serve a StringIO instance ? for 2. you may try response.stream(yourcsvinstance, filename='foo.csv', attachment=True) On Friday, October 26, 2012 1:13:17 AM UTC+2, Jonathan Lundell wrote: > > I want to build a dataset (list of lists) in response to a user request > and cause a csv of that

Re: [web2py] Re: downloading a synthetic csv

2012-10-26 Thread Jonathan Lundell
On 26 Oct 2012, at 2:46 AM, Niphlod wrote: > do you serve a StringIO instance ? for 2. you may try > response.stream(yourcsvinstance, filename='foo.csv', attachment=True) I don't; I'm just returning a list of tuples to the Service wrapper (eventually I'd make it a generator, was my plan). > >