[Zope3-checkins] CVS: Zope3/src/zope/app - copy.py:1.2.2.8

runyaga runyaga@thisbox.com
Wed, 5 Feb 2003 11:44:29 -0500


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

Modified Files:
      Tag: paris-copypasterename-branch
	copy.py 
Log Message:
when you remove you get the object
but when you paste you get the key.

sidnei was getting confused and we were
ending up pasting the u'name' of the object
instead of hte object itself.  

it works.  it should be cleaned up a tad



=== Zope3/src/zope/app/copy.py 1.2.2.7 => 1.2.2.8 ===
--- Zope3/src/zope/app/copy.py:1.2.2.7	Wed Feb  5 07:42:55 2003
+++ Zope3/src/zope/app/copy.py	Wed Feb  5 11:43:57 2003
@@ -70,7 +70,7 @@
         new_obj = movesource.removeObject(orig_name, target)
         pastetarget = getAdapter(target, IPasteTarget)
         # publish an ObjectCreatedEvent (perhaps...?)
-        new_name = pastetarget.pasteObject(name, new_obj)
+        new_name = pastetarget.pasteObject(name,new_obj)
 
         # call manage_afterAdd hook
         if queryAdapter(new_obj, IMoveNotifiable):