[Zope-CVS] CVS: Products/Sessions - SessionDataManager.py:1.6

Matthew T. Kromer matt@zope.com
Tue, 6 Nov 2001 16:07:09 -0500


Update of /cvs-repository/Products/Sessions
In directory cvs.zope.org:/tmp/cvs-serv19441

Modified Files:
	SessionDataManager.py 
Log Message:
Uses Lazy object support in ZPublisher/HTTPRequest


=== Products/Sessions/SessionDataManager.py 1.5 => 1.6 ===
         # Yank our session & stuff into request
         try:
-            session = sdm.getSessionData()
+            session = sdm.getSessionData
             self._v_errors = 0
         except:
             errors = getattr(self,"_v_errors", 0)
@@ -329,6 +329,6 @@
             self._v_errors = errors + 1
             return    # Throw our hands up but dont fail 
         if self._requestSessionName is not None:
-            request[self._requestSessionName] = session
+            request.set_lazy(self._requestSessionName, session)
 
         NameCaller.__call__(self, container, request)