[Zope3-checkins] CVS: Zope3/src/zope/app/container - copypastemove.py:1.3

Albertas Agejevas alga@codeworks.lt
Thu, 13 Mar 2003 13:49:36 -0500


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

Modified Files:
	copypastemove.py 
Log Message:
An unexpected raid by the Whitespace Police.

Other than fixes of nonconforming whitespace, just a couple of $Id$
docstrings has been added.



=== Zope3/src/zope/app/container/copypastemove.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/container/copypastemove.py:1.2	Wed Feb 26 11:11:35 2003
+++ Zope3/src/zope/app/container/copypastemove.py	Thu Mar 13 13:49:05 2003
@@ -42,7 +42,7 @@
     def acceptsObject(self, key, obj):
         '''Allow the container to say if it accepts the given wrapped
         object.
-        
+
         Returns True if the object would be accepted as contents of
         this container. Otherwise, returns False.
         '''
@@ -52,17 +52,17 @@
         if key in container:
             return False
         return True
-        
-        
+
+
     def pasteObject(self, key, obj):
         '''Add the given object to the container under the given key.
-        
+
         Raises a ValueError if key is an empty string, unless the
         this object chooses a different key.
-        
+
         Returns the key used, which might be different than the
         given key.
-        
+
         This method must not issue an IObjectAddedEvent, nor must it
         call the afterAddHook method of the object.
         However, it must publish an IObjectModified event for the
@@ -93,18 +93,18 @@
 
         publish(container, ObjectModifiedEvent(container))
         return key
-        
+
 class MoveSource:
 
     __implements__ = IMoveSource
 
     def __init__(self, container):
         self.context = container
-          
+
     def removeObject(self, key, movingTo):
         '''Remove and return the object with the given key, as the
         first part of a move.
-        
+
         movingTo is the unicode path for where the move is to.
         This method should not publish an IObjectRemovedEvent, nor should
         it call the afterDeleteHook method of the object.
@@ -112,7 +112,7 @@
         container.
         '''
         container = self.context
- 
+
         object = container[key]
         object = ContextWrapper(object, container, name=key)
 
@@ -142,7 +142,7 @@
             value = removeAllProxies(value)
             value = copy.deepcopy(value)
             return ContextWrapper(value, self.context, name=key)
-        
+
 class PasteNamesChooser:
 
     __implements__ = IPasteNamesChooser
@@ -158,7 +158,7 @@
         if key not in container:
             return key
 
-        n = 1 
+        n = 1
         while new_key in container:
             if n > 1:
                 new_key = 'copy%s_of_%s' % (n, key)