[Zope-Checkins] CVS: Zope/lib/python/OFS - CopySupport.py:1.77.16.1
Sidnei da Silva
sidnei@x3ng.com.br
Wed, 14 Aug 2002 11:28:50 -0400
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv5538/lib/python/OFS
Modified Files:
Tag: Zope-2_5-branch
CopySupport.py
Log Message:
Fixed Collector #61
=== Zope/lib/python/OFS/CopySupport.py 1.77 => 1.77.16.1 ===
--- Zope/lib/python/OFS/CopySupport.py:1.77 Wed Nov 28 10:50:57 2001
+++ Zope/lib/python/OFS/CopySupport.py Wed Aug 14 11:28:49 2002
@@ -136,6 +136,7 @@
oblist=[]
op=cp[0]
app = self.getPhysicalRoot()
+ result = []
for mdata in cp[1]:
m = Moniker.loadMoniker(mdata)
@@ -155,7 +156,9 @@
message=sys.exc_info()[1],
action ='manage_main')
ob=ob._getCopy(self)
+ orig_id=ob.getId()
id=self._get_id(ob.getId())
+ result.append({'id':orig_id, 'new_id':id})
ob._setId(id)
self._setObject(id, ob)
ob = self._getOb(id)
@@ -185,7 +188,9 @@
aq_parent(aq_inner(ob))._delObject(id)
ob = aq_base(ob)
+ orig_id=id
id=self._get_id(id)
+ result.append({'id':orig_id, 'new_id':id })
ob._setId(id)
self._setObject(id, ob, set_owner=0)
@@ -201,7 +206,7 @@
REQUEST['__cp'] = None
return self.manage_main(self, REQUEST, update_menu=1,
cb_dataValid=0)
- return ''
+ return result
manage_renameForm=Globals.DTMLFile('dtml/renameForm', globals())