[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/session/http.py
handle multiple clientid managers
Bernd Dorn
bernd.dorn at lovelysystems.com
Mon Nov 27 09:46:02 EST 2006
Log message for revision 71318:
handle multiple clientid managers
Changed:
U Zope3/trunk/src/zope/app/session/http.py
-=-
Modified: Zope3/trunk/src/zope/app/session/http.py
===================================================================
--- Zope3/trunk/src/zope/app/session/http.py 2006-11-27 14:02:59 UTC (rev 71317)
+++ Zope3/trunk/src/zope/app/session/http.py 2006-11-27 14:46:00 UTC (rev 71318)
@@ -318,8 +318,8 @@
# IHTTPRequest for the response attribute, and so does the cookie-
# manager.
request = IHTTPRequest(event.request, None)
- manager = component.queryUtility(IClientIdManager)
- if manager and request and ICookieClientIdManager.providedBy(manager):
- cookie = request.response.getCookie(manager.namespace)
- if cookie:
- manager.setRequestId(request, cookie['value'])
+ for name, manager in component.getUtilitiesFor(IClientIdManager):
+ if manager and request and ICookieClientIdManager.providedBy(manager):
+ cookie = request.response.getCookie(manager.namespace)
+ if cookie:
+ manager.setRequestId(request, cookie['value'])
More information about the Zope3-Checkins
mailing list