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

Chris McDonough chrism@zope.com
Tue, 13 Nov 2001 18:00:48 -0500


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

Modified Files:
	SessionDataManager.py 
Log Message:
fix hasSessionData.


=== Products/Sessions/SessionDataManager.py 1.9 => 1.10 ===
     def hasSessionData(self):
         """ """
-        key = self.getBrowserIdManager().getToken(create=0)
-        if key:
-            if self._hasSessionDataObject(key):
-                return 1
+        return not not self.getSessionData(create=0)
 
     security.declareProtected(ARBITRARY_SESSIONDATA_PERM,'getSessionDataByKey')
     def getSessionDataByKey(self, key):