[Zope] problem.

Tom Deprez Tom Deprez" <tom.deprez@uz.kuleuven.ac.be
Tue, 16 Oct 2001 17:53:35 +0200


Oleg,

Thanks a lot! This was the problem.

Regards, Tom.
----- Original Message ----- 
From: "Oleg Broytmann" <phd@phd.pp.ru>
To: "Tom Deprez" <tom.deprez@uz.kuleuven.ac.be>
Cc: <zope@zope.org>
Sent: Tuesday, October 16, 2001 5:39 PM
Subject: Re: [Zope] problem.


> 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.