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

Casey Duncan cvs-admin at zope.org
Fri Dec 5 17:16:13 EST 2003


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

Modified Files:
	CookieCrumbler.py 
Log Message:
Add new "twiddleAuthCookie" hook to CookieCrumbler. This addtional hook allows a script to manipulate the auth cookie at each request. This can be used to extend the expiration of the cookie for instance.


=== CMF/CMFCore/CookieCrumbler.py 1.23 => 1.24 ===
--- CMF/CMFCore/CookieCrumbler.py:1.23	Thu Dec  4 17:16:37 2003
+++ CMF/CMFCore/CookieCrumbler.py	Fri Dec  5 17:16:12 2003
@@ -183,6 +183,10 @@
                         req._auth = 'Basic %s' % ac
                         resp._auth = 1
                         self.delRequestVar(req, self.auth_cookie)
+                        method = self.getCookieMethod(
+                            'twiddleAuthCookie', None)
+                        if method is not None:
+                            method(resp, self.auth_cookie, quote(ac))
 
         req._cookie_auth = attempt
         return attempt




More information about the CMF-checkins mailing list