[Zope-Checkins] CVS: Packages/ZPublisher - cgi_hotfix.py:1.2 HTTPRequest.py:1.55

Evan Simpson evan@digicool.com
Wed, 25 Jul 2001 15:38:28 -0400


Update of /cvs-repository/Packages/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv16592

Modified Files:
	HTTPRequest.py 
Added Files:
	cgi_hotfix.py 
Log Message:
Hotfix 2001-07-24

 
=== Packages/ZPublisher/cgi_hotfix.py 1.1 => 1.2 ===



=== Packages/ZPublisher/HTTPRequest.py 1.54 => 1.55 ===

 __version__='$Revision$'[11:-2]
 
-import  re, sys, os, string, urllib, time, whrandom
+import re, sys, os, string, urllib, time, whrandom, cgi
 from string import lower, atoi, rfind, split, strip, join, upper, find
 from BaseRequest import BaseRequest
 from HTTPResponse import HTTPResponse
@@ -94,6 +94,10 @@
 from Converters import get_converter
 from maybe_lock import allocate_lock
 xmlrpc=None # Placeholder for module that we'll import if we have to.
+
+#cgi hotfix:
+if not hasattr(cgi, 'valid_boundary'):
+    import cgi_hotfix
 
 isCGI_NAME = {
         'SERVER_SOFTWARE' : 1,