[Zope3-checkins] CVS: Zope3/src/zope/publisher - browser.py:1.5
Jim Fulton
jim@zope.com
Fri, 7 Feb 2003 10:42:38 -0500
Update of /cvs-repository/Zope3/src/zope/publisher
In directory cvs.zope.org:/tmp/cvs-serv21713
Modified Files:
browser.py
Log Message:
Changed to use the method attribute.
=== Zope3/src/zope/publisher/browser.py 1.4 => 1.5 ===
--- Zope3/src/zope/publisher/browser.py:1.4 Mon Dec 30 21:52:18 2002
+++ Zope3/src/zope/publisher/browser.py Fri Feb 7 10:42:36 2003
@@ -53,7 +53,7 @@
REC = 12 # RECORD|RECORDS
EMPTY = 16
CONVERTED = 32
-DEFAULTABLE_METHODS = 'GET', 'POST'
+DEFAULTABLE_METHODS = 'GET', 'POST', 'HEAD'
def field2string(v):
@@ -268,9 +268,8 @@
environ = self._environ
form = self.form
- method = environ.get('REQUEST_METHOD', 'GET')
- if method != 'GET':
+ if self.method != 'GET':
# Process form if not a GET request.
fp = self._body_instream
else:
@@ -607,7 +606,7 @@
'See IPublisherRequest'
ob = super(BrowserRequest, self).traverse(object)
- method = self._environ.get('REQUEST_METHOD', 'GET').upper()
+ method = self.method
base_needed = 0
if self._path_suffix: