[Zope-Checkins] CVS: Zope/lib/python/Products/Transience - Transience.py:1.20 TransienceInterfaces.py:1.9

Chris McDonough chrism@zope.com
Tue, 20 Nov 2001 10:29:54 -0500


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

Modified Files:
	Transience.py TransienceInterfaces.py 
Log Message:
Added interface method getContainerKey.

Changed interfaces files to reflect getContainerKey.

Specified permissions in helpsystem interfaces for transient objects.


=== Zope/lib/python/Products/Transience/Transience.py 1.19 => 1.20 ===
     #
 
-    def __init__(self, id):
-        self.token = id
+    def __init__(self, containerkey):
+        self.token = containerkey
         self.id = self._generateUniqueId()
         self._container = {}
         self._created = self._last_accessed = time()
@@ -733,9 +733,9 @@
         # other objects (eliminates read conflicts).
         return 1
 
-    getName = getId
+    getName = getId # this is for SQLSession compatibility
 
-    def getToken(self):
+    def getContainerKey(self):
         return self.token
     
     def _generateUniqueId(self):


=== Zope/lib/python/Products/Transience/TransienceInterfaces.py 1.8 => 1.9 ===
         """
 
+    def getContainerKey(self):
+        """
+        Return the key under which the object was placed in its
+        container.
+        """
+
 class DictionaryLike(Interface.Base):
     def keys(self):
         """