Re: can't find the exact header for sending ods file as a downloadable file

2012-12-30 Thread Yu Liang
Try set Response.app_iter. On Saturday, December 22, 2012 3:49:37 AM UTC+8, kk.gnu wrote: Hello all. I wish to send across an ods (spreadsheet) file from my pylons controller in such a way that the browser should ask the user to download the file (by presenting the usual download dialog

Re: can't find the exact header for sending ods file as a downloadable file

2012-12-26 Thread Jason
On Friday, December 21, 2012 2:49:37 PM UTC-5, kk.gnu wrote: Hello all. I wish to send across an ods (spreadsheet) file from my pylons controller in such a way that the browser should ask the user to download the file (by presenting the usual download dialog of course ). Can some one

Re: can't find the exact header for sending ods file as a downloadable file

2012-12-23 Thread Krishnakant Mane
On 12/22/2012 02:10 AM, Jason wrote: hi Jason, Thanks for the idea. Once you have the ods as a file object in your view-callable you can return it with something like: filecontent = myfile.read() headers = { 'Content-Type': 'application/ods', 'Content-Length':

can't find the exact header for sending ods file as a downloadable file

2012-12-21 Thread Krishnakant Mane
Hello all. I wish to send across an ods (spreadsheet) file from my pylons controller in such a way that the browser should ask the user to download the file (by presenting the usual download dialog of course ). Can some one help here? happy hacking. Krishnakant. -- You received this message

Re: can't find the exact header for sending ods file as a downloadable file

2012-12-21 Thread Jason
On Friday, December 21, 2012 2:49:37 PM UTC-5, kk.gnu wrote: Hello all. I wish to send across an ods (spreadsheet) file from my pylons controller in such a way that the browser should ask the user to download the file (by presenting the usual download dialog of course ). Can some one