[CMF-checkins] CVS: CMF/CMFCore - CookieCrumbler.py:1.17

Chris McDonough chrism@zope.com
Tue, 5 Nov 2002 16:46:14 -0500


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

Modified Files:
	CookieCrumbler.py 
Log Message:
Monkey-patch the response's unauthorized method even if we're in an ATTEMPT_RESUME situation.  If this is not done and the user encounters an unauthorized error in a "resumed" situation, a basic auth dialog will be presented.


=== CMF/CMFCore/CookieCrumbler.py 1.16 => 1.17 ===
--- CMF/CMFCore/CookieCrumbler.py:1.16	Sat Aug  3 22:38:35 2002
+++ CMF/CMFCore/CookieCrumbler.py	Tue Nov  5 16:46:13 2002
@@ -153,7 +153,8 @@
         if attempt == ATTEMPT_DISABLED:
             return
         if not req.get('disable_cookie_login__', 0):
-            if attempt == ATTEMPT_LOGIN or attempt == ATTEMPT_NONE:
+            if attempt == ATTEMPT_LOGIN or attempt == ATTEMPT_NONE \
+                   or attempt == ATTEMPT_RESUME:
                 # Modify the "unauthorized" response.
                 req._hold(ResponseCleanup(resp))
                 resp.unauthorized = self.unauthorized