[web2py] Re: save to ascii text to file instead of html

2013-07-23 Thread lucas
yes, that worked, here is my code under the controller: response.headers['Content-Type'] = 'text/x-dude' response.headers['Content-Disposition'] = 'attachment; filename="%s.csv"' % xml.sample['name'].strip().replace(' ','_') return str(body).replace('','\n') where i gav

[web2py] Re: save to ascii text to file instead of html

2013-07-23 Thread Niphlod
you set the content-disposition header as 'attachment; filename=yourfilename.csv' On Tuesday, July 23, 2013 8:30:56 PM UTC+2, lucas wrote: > > hey everyone, > > i ask a lot of questions, but i do a lot of strange stuff. anyway, i have > a form that processes an XML file and converts it into a p