[CMF-checkins] CVS: Products/CMFCore - RegistrationTool.py:1.18 FSSTXMethod.py:1.8 FSObject.py:1.14

Jeremy Hylton jeremy@zope.com
Thu, 30 Jan 2003 15:26:53 -0500


Update of /cvs-repository/Products/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv26106

Modified Files:
	RegistrationTool.py FSSTXMethod.py FSObject.py 
Log Message:
Raise NotImplementedError.

NotImplemented is an object that can be used for objects participating
in rich comparisons.  It's not an exception, so it can't be raised.

XXX Remove "do this soon" comment.  It ain't gonna happen soon <wink>.


=== Products/CMFCore/RegistrationTool.py 1.17 => 1.18 ===
--- Products/CMFCore/RegistrationTool.py:1.17	Mon Jan  6 15:36:04 2003
+++ Products/CMFCore/RegistrationTool.py	Thu Jan 30 15:26:50 2003
@@ -160,6 +160,6 @@
         '''Email a forgotten password to a member.  Raises an exception
         if user ID is not found.
         '''
-        raise 'NotImplemented'
+        raise NotImplementedError
 
 InitializeClass(RegistrationTool)


=== Products/CMFCore/FSSTXMethod.py 1.7 => 1.8 ===
--- Products/CMFCore/FSSTXMethod.py:1.7	Sat Aug  3 22:31:30 2002
+++ Products/CMFCore/FSSTXMethod.py	Thu Jan 30 15:26:50 2003
@@ -64,8 +64,7 @@
         """
             Create a ZODB (editable) equivalent of this object.
         """
-        # XXX:  do this soon
-        raise NotImplemented, "See next week's model."
+        raise NotImplementedError, "See next week's model."
 
     def _readFile( self, reparse ):
 


=== Products/CMFCore/FSObject.py 1.13 => 1.14 ===
--- Products/CMFCore/FSObject.py:1.13	Fri Nov  8 19:25:23 2002
+++ Products/CMFCore/FSObject.py	Thu Jan 30 15:26:50 2003
@@ -90,7 +90,7 @@
 
     def _createZODBClone(self):
         """Create a ZODB (editable) equivalent of this object."""
-        raise NotImplemented, "This should be implemented in a subclass."
+        raise NotImplementedError, "This should be implemented in a subclass."
 
     def _readFile(self, reparse):
         """Read the data from the filesystem.
@@ -99,7 +99,7 @@
         data if necessary.  'reparse' is set when reading the second
         time and beyond.
         """
-        raise NotImplemented, "This should be implemented in a subclass."
+        raise NotImplementedError, "This should be implemented in a subclass."
 
     # Refresh our contents from the filesystem if that is newer and we are
     # running in debug mode.