[Zope-Checkins] CVS: Zope/lib/python/OFS - CopySupport.py:1.81
Sidnei da Silva
sidnei@x3ng.com.br
Wed, 14 Aug 2002 11:22:42 -0400
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv4809/lib/python/OFS
Modified Files:
CopySupport.py
Log Message:
Fixed Collector #61
=== Zope/lib/python/OFS/CopySupport.py 1.80 => 1.81 ===
--- Zope/lib/python/OFS/CopySupport.py:1.80 Wed Jun 12 14:15:53 2002
+++ Zope/lib/python/OFS/CopySupport.py Wed Aug 14 11:22:11 2002
@@ -137,6 +137,7 @@
oblist=[]
op=cp[0]
app = self.getPhysicalRoot()
+ result = []
for mdata in cp[1]:
m = Moniker.loadMoniker(mdata)
@@ -156,7 +157,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)
@@ -186,7 +189,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)
@@ -202,7 +207,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())