Re: [Zope] dynamically creating zip file, returning to user

2006-01-05 Thread Tino Wildenhain
John Toews schrieb: Zope 2.8.0, Python 2.3.5 I'm having a heck of a time figuring out how to zip up some files in my zope instance and return them to the user. I can sucessfully create a zip file on the local file system, but if I try to pass it back to the user it is corrupted. Of course

Re: [Zope] dynamically creating zip file, returning to user

2006-01-05 Thread Tino Wildenhain
John Toews schrieb: Thanks Tino, I'll definately give that a try too. The quick fix seemed to be opening the file for read in binary mode... that should have been obvious. Posting another dumb question to the list now. ;) no, dot use a regular file! Use the tempfile module! And dont reopen but