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

Guido van Rossum guido@python.org
Thu, 5 Jun 2003 16:57:07 -0400


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

Modified Files:
	classes.py 
Log Message:
To prevent mistakes, let the default setBody() call raise
NotImplementedError rather than silently doing nothing.


=== Zope3/src/zope/app/fssync/classes.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/fssync/classes.py:1.5	Wed May 28 11:46:08 2003
+++ Zope3/src/zope/app/fssync/classes.py	Thu Jun  5 16:57:06 2003
@@ -118,7 +118,8 @@
         return dumps(self.context)
 
     def setBody(self, body):
-        pass
+        "See IObjectFile"
+        raise NotImplementedError
 
     def factory(self):
         "See IObjectEntry"