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,'')
  file = open(fname,'rb').read()
  self.REQUEST.RESPONSE.setHeader('Content-Type', 'application/zip')
  return file

Better use 'application/x-zip-compressed' and perhaps:
REQUEST.RESPONSE.setHeader('Content-Disposition', 'attachment; filename=""')

Gabriel Genellina
Softlab SRL

Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!

Zope maillist  -
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to