[Zope-Checkins] CVS: Zope/lib/python/Products/Sessions - SessionDataManager.py:1.15

Chris McDonough chrism@zope.com
Thu, 17 Jan 2002 20:30:25 -0500


Update of /cvs-repository/Zope/lib/python/Products/Sessions
In directory cvs.zope.org:/tmp/cvs-serv18095

Modified Files:
	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).

(merge from branch)



=== Zope/lib/python/Products/Sessions/SessionDataManager.py 1.14 => 1.15 ===
             self._requestSessionName = requestSessionName
 
-class SessionDataManagerTraverser:
+class SessionDataManagerTraverser(Persistent):
     def __init__(self, requestSessionName, sdm):
         self._requestSessionName = requestSessionName
         self._sessionDataManager = sdm