[Zope] Patch for Zope 2.0.0b5 - fixes Squishdot postings
Elliot Lee
sopwith@redhat.com
Wed, 25 Aug 1999 18:27:47 -0400 (EDT)
Without this patch, Zope seems to create FileUpload objects for fields
that shouldn't have them. (I'm using lynx 2.8.1 from RHL 6.0 as my browser
- I think it is sending the content-type for the fields as 'text/plain;
charset=iso-8859-1').
I don't claim that this is the right solution, just that it solves my
specific problem and may be helpful in tracking down the final solution.
--- Zope-2.0.0b5-src/lib/python/ZPublisher/HTTPRequest.py Tue Aug 17 14:51:39 1999
+++ /usr/local/www/Zope/lib/python/ZPublisher/HTTPRequest.py Wed Aug 25 18:20:12 1999
@@ -317,9 +317,7 @@
if (hasattr(item,'file') and hasattr(item,'filename')
and hasattr(item,'headers')):
if (item.file and
- (item.filename is not None or
- 'content-type' in map(lower,
- item.headers.keys()))):
+ (item.filename is not None)):
item=FileUpload(item)
else:
item=item.value
Hope this helps,
-- Elliot
Who me? I just wander from room to room.