-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tino Wildenhain wrote:
> 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".

Don't forget the 'b' when doing zipfiles!


Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDvoj3+gerLs4ltQ4RAvpXAJ0Zcs5oTulmzdEwPnJ4nRoe/v8DyACePGum
N0GbYQ63ky/MKtrSNHa1LA0=
=OIXo
-----END PGP SIGNATURE-----

_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to