[ZCM] [ZC] 1199/ 1 Request "FileUpload not iterable"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Tue Jan 20 23:57:37 EST 2004
Issue #1199 Update (Request) "FileUpload not iterable"
Status Pending, Zope/bug+solution medium
To followup, visit:
http://collector.zope.org/Zope/1199
==============================================================
= Request - Entry #1 by LRA on Jan 20, 2004 11:57 pm
ZPublisher.HTTPRequest.FileUpload class does not implement the iterable interface regular files do, so it can't be used in places where a file object is assumed to be an iterable, like csv.reader(), for instance.
I think fixing this is as easy as implementing an __iter__ method that returns 'self' and a .next() method as an alias for .readline() in the FileUpload class
==============================================================
More information about the Zope-Collector-Monitor
mailing list