[Zope3-checkins] CVS: Zope3/src/zope/app/container - zopecontainer.py:1.15

Steve Alexander steve@cat-box.net
Thu, 8 May 2003 06:57:56 -0400


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

Modified Files:
	zopecontainer.py 
Log Message:
Formatting tidied.


=== Zope3/src/zope/app/container/zopecontainer.py 1.14 => 1.15 ===
--- Zope3/src/zope/app/container/zopecontainer.py:1.14	Thu May  1 15:35:09 2003
+++ Zope3/src/zope/app/container/zopecontainer.py	Thu May  8 06:57:55 2003
@@ -149,25 +149,25 @@
 
     def rename(self, currentKey, newKey):
         """Put the object found at 'currentKey' under 'newKey' instead.
-        
+
         The container can choose different or modified 'newKey'. The
         'newKey' that was used is returned.
-        
+
         If the object at 'currentKey' is IMoveNotifiable, its
         beforeDeleteHook method is called, with a movingTo
         argument of the container's path plus the 'newKey'.
         Otherwise, if the object at 'currentKey' is IDeleteNotifiable,
         its beforeDeleteHook method is called.
-        
+
         Then, the object is removed from the container using the
         container's __del__ method.
-        
+
         Then, If the object is IMoveNotifiable, its afterAddHook
         method is called, with a movedFrom argument of the container's
         path plus the 'currentKey'.
         Otherwise, if the object is IAddNotifiable, its afterAddHook
         method is called.
-        
+
         Then, an IObjectMovedEvent is published.
         """
 
@@ -176,15 +176,13 @@
             raise NotFoundError(self.context, currentKey)
         mover = getAdapter(object, IObjectMover)
         target = self.context
-        
+
         if target.__contains__(newKey):
             raise DuplicationError("name, %s, is already in use" % newKey)
 
         if mover.moveable() and mover.moveableTo(target, newKey):
-
             # the mover will call beforeDeleteHook hook for us
             mover.moveTo(target, newKey)
             # the mover will call the afterAddHook hook for us
             # the mover will publish an ObjectMovedEvent for us
 
-