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