[Zope] dynamically creating zip file, returning to user
Tino Wildenhain
tino at wildenhain.de
Thu Jan 5 23:29:39 EST 2006
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 seek to the start - f.seek(0)
You just open it for "rw".
More information about the Zope
mailing list