[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/session/http.py Move
adaptation of request to where the interface in question is used;
IHTTPApplicationRequest doesn't *have* a response attribute even if
the current implementation does
Martijn Pieters
mj at zopatista.com
Sat Jul 29 14:26:07 EDT 2006
Log message for revision 69293:
Move adaptation of request to where the interface in question is used; IHTTPApplicationRequest doesn't *have* a response attribute even if the current implementation does
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-07-29 13:35:45 UTC (rev 69292)
+++ Zope3/trunk/src/zope/app/session/http.py 2006-07-29 18:26:06 UTC (rev 69293)
@@ -178,7 +178,6 @@
True
"""
- request = IHTTPApplicationRequest(request)
# If there is an id set on the response, use that but don't trust it.
# We need to check the response in case there has already been a new
# session created during the course of this request.
@@ -186,6 +185,7 @@
if response_cookie:
sid = response_cookie['value']
else:
+ request = IHTTPApplicationRequest(request)
sid = request.getCookies().get(self.namespace, None)
if sid is None or len(sid) != 54:
return None
More information about the Zope3-Checkins
mailing list