[CMF-checkins] CVS: CMF/CMFCore - CookieCrumbler.py:1.19 PortalContent.py:1.43

Shane Hathaway shane@zope.com
Mon, 28 Apr 2003 17:11:14 -0400


Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv27502

Modified Files:
	CookieCrumbler.py PortalContent.py 
Log Message:
Accept authentication on HEAD requests.  Thanks to Brent Hendricks.

=== CMF/CMFCore/CookieCrumbler.py 1.18 => 1.19 ===
--- CMF/CMFCore/CookieCrumbler.py:1.18	Wed Feb 19 14:03:02 2003
+++ CMF/CMFCore/CookieCrumbler.py	Mon Apr 28 17:11:13 2003
@@ -104,7 +104,7 @@
         if req.__class__ is not HTTPRequest:
             return ATTEMPT_DISABLED
 
-        if not req[ 'REQUEST_METHOD' ] in ( 'GET', 'PUT', 'POST' ):
+        if not req[ 'REQUEST_METHOD' ] in ( 'HEAD', 'GET', 'PUT', 'POST' ):
             return ATTEMPT_DISABLED
 
         if req.environ.has_key( 'WEBDAV_SOURCE_PORT' ):


=== CMF/CMFCore/PortalContent.py 1.42 => 1.43 ===
--- CMF/CMFCore/PortalContent.py:1.42	Thu Feb 13 03:31:01 2003
+++ CMF/CMFCore/PortalContent.py	Mon Apr 28 17:11:13 2003
@@ -111,7 +111,7 @@
         '''
         view = _getViewFor(self)
         if getattr(aq_base(view), 'isDocTemp', 0):
-            return apply(view, (self, self.REQUEST))
+            return view(self, self.REQUEST)
         else:
             return view()