[Zope] Patch for Zope 2.0.0b5 - fixes Squishdot postings
Michel Pelletier
michel@digicool.com
Thu, 26 Aug 1999 00:46:31 -0400
Elliot Lee wrote:
>
> 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,
Can you submit this to the Collector with the patch? We'll have to look
at it closly. Butch, do you know about this?
-Michel
> -- Elliot
> Who me? I just wander from room to room.
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>
> (To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
>
> For developer-specific issues, zope-dev@zope.org -
> http://www.zope.org/mailman/listinfo/zope-dev )