[Zope-Checkins] CVS: Zope/lib/python/Products/Sessions - SessionDataManager.py:1.13.2.2
Chris McDonough
chrism@zope.com
Fri, 11 Jan 2002 15:46:45 -0500
Update of /cvs-repository/Zope/lib/python/Products/Sessions
In directory cvs.zope.org:/tmp/cvs-serv15303
Modified Files:
Tag: Zope-2_5-branch
SessionDataManager.py
Log Message:
Make SessionDataManagerTraverser inherit from Persistent. This is in order to avoid a situation in which a nonpersistent instance of this class is inserted into the before traverse hook, causing Zope to not be able to start if the class' containing module can't be imported. The existence of the bug stemmed from my lack of knowledge about how the traverse hook worked (I didn't know it actually stored an object reference).
=== Zope/lib/python/Products/Sessions/SessionDataManager.py 1.13.2.1 => 1.13.2.2 ===
self._requestSessionName = requestSessionName
-class SessionDataManagerTraverser:
+class SessionDataManagerTraverser(Persistent):
def __init__(self, requestSessionName, sdm):
self._requestSessionName = requestSessionName
self._sessionDataManager = sdm