[Zope-dev] Patch: let non-seekable streams be input for
ZPublisher (updated)
Dieter Maurer
dieter at handshake.de
Fri Aug 20 14:37:06 EDT 2004
Ames Andreas (MPA/DF) wrote at 2004-8-19 18:04 +0200:
> ...
>Cause of your hint I looked again and realised that I was wrong.
>HTTPRquest's 'BODYFILE' field fails to reset the file before accessing
>it (as in OFS/Image.py the File class does). That could be easily
>fixed. What's worse is that FiledStorage can possibly create
>subinstances of itsellf which can possibly contain other fileobjects.
>This is the case for multipart-type requests.
Maybe, I have a much simpler solution:
Something in ZServer makes all file fields seekable by
delivering them through some temporary (either a StringIO
or a temporary file).
Maybe, you could do the same for your requests?
--
Dieter
More information about the Zope-Dev
mailing list