[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Container - Exceptions.py:1.3

Jeremy Hylton jeremy@zope.com
Fri, 20 Dec 2002 17:19:28 -0500


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

Modified Files:
	Exceptions.py 
Log Message:
Add missing newline at end of file.
Reflow long line.
Reformat docstrings.


=== Zope3/lib/python/Zope/App/OFS/Container/Exceptions.py 1.2 => 1.3 ===
--- Zope3/lib/python/Zope/App/OFS/Container/Exceptions.py:1.2	Mon Jun 10 19:27:55 2002
+++ Zope3/lib/python/Zope/App/OFS/Container/Exceptions.py	Fri Dec 20 17:19:28 2002
@@ -11,24 +11,25 @@
 # FOR A PARTICULAR PURPOSE.
 # 
 ##############################################################################
-"""
-    Define adder component for folders.
+"""Define adder component for folders.
+
+$Id$
 """
 
 class DuplicateIDError(KeyError):
     pass
 
 class ContainerError(Exception):
-    """An error of a container with one of its components
-    """
+    """An error of a container with one of its components."""
     
 class UnaddableError(ContainerError):
-    """an object cannot be added to a container"""
+    """An object cannot be added to a container."""
     
     def __init__(self, container, obj, message=""):
-        self.container=container
-        self.obj=obj
-        self.message=message and ": %s" % message
+        self.container = container
+        self.obj = obj
+        self.message = message and ": %s" % message
     
     def __str__(self):
-        return "%(obj)s cannot be added to %(container)s%(message)s" % self.__dict__
\ No newline at end of file
+        return ("%(obj)s cannot be added "
+                "to %(container)s%(message)s" % self.__dict__)