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

Jim Fulton jim@zope.com
Thu, 10 Oct 2002 00:43:57 -0400


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

Modified Files:
      Tag: FileSystemSync-branch
	IAnnotations.py 
Log Message:
Initial exploratory prototype code

=== Zope3/lib/python/Zope/App/OFS/Annotation/IAnnotations.py 1.2 => 1.2.10.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	Thu Oct 10 00:43:26 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.
         """