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 =
- 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,
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')
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:
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