[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces - fssync.py:1.3

Guido van Rossum guido@python.org
Mon, 9 Jun 2003 14:48:53 -0400


Update of /cvs-repository/Zope3/src/zope/app/interfaces
In directory cvs.zope.org:/tmp/cvs-serv29226/interfaces

Modified Files:
	fssync.py 
Log Message:
Add annotations() to the IObjectEntry interface.  This makes the
treatment of extra() and annotations() more similar, and allows an
adapter to trap the annotations as they are going to or coming from
disk.


=== Zope3/src/zope/app/interfaces/fssync.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/interfaces/fssync.py:1.2	Mon May  5 14:01:02 2003
+++ Zope3/src/zope/app/interfaces/fssync.py	Mon Jun  9 14:48:52 2003
@@ -31,6 +31,13 @@
         objects that will be serialized to or from the file system.
         """
 
+    def annotations():
+        """Returns annotations data for the entry.
+
+        This behaves similar to extra().  The default implementation
+        might return queryAdapter(obj, IAnnotations).
+        """
+
     def typeIdentifier():
         """Return a dotted name that identifies the object type.