[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container - contents.py:1.7.2.5

runyaga runyaga@thisbox.com
Thu, 6 Feb 2003 12:18:19 -0500


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

Modified Files:
      Tag: paris-copypasterename-branch
	contents.py 
Log Message:
steve a may help


=== Zope3/src/zope/app/browser/container/contents.py 1.7.2.4 => 1.7.2.5 ===
--- Zope3/src/zope/app/browser/container/contents.py:1.7.2.4	Thu Feb  6 11:04:35 2003
+++ Zope3/src/zope/app/browser/container/contents.py	Thu Feb  6 12:17:47 2003
@@ -69,10 +69,10 @@
 
     def renameObjects(self, ids, newids):
         """Given a sequence of tuples of old, new ids we rename"""
-        container = self.context
+        container = getAdapter(self.context, IZopeContainer)
         for id, newid in zip(ids, newids):
             if newid != id:
-                obj = traverse(container, id)
+                obj = container[id]
                 getAdapter(obj, IObjectMover).moveTo(container, newid)
         self.request.response.redirect('@@contents.html')