[Zope3-checkins] CVS: Zope3/src/zope/app/fssync - classes.py:1.12

Fred L. Drake, Jr. fred@zope.com
Mon, 7 Jul 2003 12:35:55 -0400


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

Modified Files:
	classes.py 
Log Message:
- make a mapping-interface get() method's default argument optional
- add a comment to Default.annotations() about applicability


=== Zope3/src/zope/app/fssync/classes.py 1.11 => 1.12 ===
--- Zope3/src/zope/app/fssync/classes.py:1.11	Mon Jun 30 13:52:22 2003
+++ Zope3/src/zope/app/fssync/classes.py	Mon Jul  7 12:35:50 2003
@@ -37,7 +37,7 @@
             return getattr(self.context, name)
         raise KeyError, name
 
-    def get(self, name, default):
+    def get(self, name, default=None):
         if name in self.attrs:
             return getattr(self.context, name, default)
         return default
@@ -111,4 +111,8 @@
 
     def annotations(self):
         # The annotations are already stored in the pickle.
+        # This is only the right thing if the annotations are
+        # stored in the object's attributes (such as IAttributeAnnotatable);
+        # if that's not the case, then either this method needs to be
+        # overridden or this class shouldn't be used.
         return None