[Checkins] SVN: zope.httpform/trunk/ Relaxed the requirement for REQUEST_METHOD because the zope.publisher

Shane Hathaway shane at hathawaymix.org
Fri Feb 6 04:15:55 EST 2009


Log message for revision 96178:
  Relaxed the requirement for REQUEST_METHOD because the zope.publisher
  tests do not set it.
  

Changed:
  U   zope.httpform/trunk/CHANGES.txt
  U   zope.httpform/trunk/src/zope/httpform/parser.py

-=-
Modified: zope.httpform/trunk/CHANGES.txt
===================================================================
--- zope.httpform/trunk/CHANGES.txt	2009-02-06 07:50:13 UTC (rev 96177)
+++ zope.httpform/trunk/CHANGES.txt	2009-02-06 09:15:55 UTC (rev 96178)
@@ -6,7 +6,8 @@
 
 - Fixed some misleading documentation.
 
-- ...
+- Relaxed the requirement for REQUEST_METHOD because the zope.publisher
+  tests do not set it.
 
 Version 1.0.0 (2009-02-06)
 --------------------------

Modified: zope.httpform/trunk/src/zope/httpform/parser.py
===================================================================
--- zope.httpform/trunk/src/zope/httpform/parser.py	2009-02-06 07:50:13 UTC (rev 96177)
+++ zope.httpform/trunk/src/zope/httpform/parser.py	2009-02-06 09:15:55 UTC (rev 96178)
@@ -95,7 +95,7 @@
         self.form = {}
         self.action = None
 
-        method = self._env['REQUEST_METHOD'].upper()
+        method = self._env.get('REQUEST_METHOD', '').upper()
         if method in ('GET', 'HEAD'):
             # Look for a query string instead of an input body
             fp = None



More information about the Checkins mailing list