Re: Re: [Zope] download a file in a specific folder in the filesystem

2006-08-24 Thread Alan
Hi! Thanks for your replies. But for what I want LocalFS or ExtFile sounds too much, specially because I just need to download. Either, I did not realise yet well what Richard purposed... However, I tried that: with a external method fname = os.path.join(jobdir,'results.zip') file =

Re: Re: [Zope] download a file in a specific folder in the filesystem

2006-08-24 Thread Jonathan
- Original Message - From: Alan [EMAIL PROTECTED] To: zope@zope.org Sent: Thursday, August 24, 2006 11:52 AM Subject: Re: Re: [Zope] download a file in a specific folder in the filesystem Hi! Thanks for your replies. But for what I want LocalFS or ExtFile sounds too much,

Re: Re: [Zope] download a file in a specific folder in the filesystem

2006-08-24 Thread Gabriel Genellina
At Thursday 24/8/2006 12:52, Alan wrote: But for what I want LocalFS or ExtFile sounds too much, specially because I just need to download. Either, I did not realise yet well what Richard purposed... However, I tried that: with a external method fname = os.path.join(jobdir,'results.zip')

Re: Re: Re: [Zope] download a file in a specific folder in the filesystem

2006-08-24 Thread Alan
Thanks a lot guys, it's working fine. elif (func == 'Download'): fname = os.path.join(jobdir,'results.zip') file = open(fname,'rb').read() self.REQUEST.RESPONSE.setHeader('Content-Type', 'application/zip') return file Cheers, Alan On 24/08/06, Gabriel Genellina [EMAIL PROTECTED] wrote:

Re: Re: Re: [Zope] download a file in a specific folder in the filesystem

2006-08-24 Thread Gabriel Genellina
At Thursday 24/8/2006 13:55, Alan wrote: Thanks a lot guys, it's working fine. elif (func == 'Download'): fname = os.path.join(jobdir,'results.zip') file = open(fname,'rb').read() self.REQUEST.RESPONSE.setHeader('Content-Type', 'application/zip') return file Better use