[Zope] problem.

Oleg Broytmann Oleg Broytmann <phd@phd.pp.ru>
Tue, 16 Oct 2001 19:39:40 +0400


On Tue, Oct 16, 2001 at 05:18:51PM +0200, Tom Deprez wrote:
> import zipfile
> import tempfile
> 
> def zipfolder(self):
>     filename=tempfile.mktemp()+'.zip'
>     zip=zipfile.ZipFile(filename,'w',zipfile.ZIP_STORED)
                                    ^ wb (perhaps, I am not sure)
>     zip.write('c:\install.log')
>     zip.close()
>     return open(filename).read()
                          ^ 'rb' (this time I am sure)

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.