[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Annotation - IAnnotations.py:1.2.14.1

Jim Fulton jim@zope.com
Fri, 11 Oct 2002 02:28:36 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Annotation
In directory cvs.zope.org:/tmp/cvs-serv1649/lib/python/Zope/App/OFS/Annotation

Modified Files:
      Tag: FileSystemSync-branch
	IAnnotations.py 
Log Message:
adding (back) changed to branch

=== Zope3/lib/python/Zope/App/OFS/Annotation/IAnnotations.py 1.2 => 1.2.14.1 ===
--- Zope3/lib/python/Zope/App/OFS/Annotation/IAnnotations.py:1.2	Mon Jun 10 19:27:51 2002
+++ Zope3/lib/python/Zope/App/OFS/Annotation/IAnnotations.py	Fri Oct 11 02:28:05 2002
@@ -24,28 +24,34 @@
     """
 
     def __getitem__(key):
-        """
-        Return the annotation stored under key.
+        """Return the annotation stored under key.
 
         Raises KeyError if key not found.
         """
 
     def get(key, default=None):
+        """Return the annotation stored under key.
+
+        Return default if not found.
         """
-        Return the annotation stored under key, returning default if not found.
+
+    def __contains__(key):
+        """Determine whether the key is in the annotations
         """
 
-    def __setitem__(key, memento):
+    def __iter__():
+        """Return an iterator for the annotation keys
         """
-        Store annotation under key.
+
+    def __setitem__(key, memento):
+        """Store annotation under key.
 
         In order to avoid key collisions, users of this interface must
         use their dotted package name as part of the key name.
         """
 
     def __delitem__(key):
-        """
-        Removes the annotation stored under key.
+        """Removes the annotation stored under key.
 
         Raises a KeyError if the key is not found.
         """