[Zope-Checkins] CVS: Zope2 - CopySupport.py:1.70
Brian Lloyd
brian@digicool.com
Tue, 27 Mar 2001 09:48:49 -0500 (EST)
Update of /cvs-repository/Zope2/lib/python/OFS
In directory korak:/home/brian/temp/mainline_test/lib/python/OFS
Modified Files:
CopySupport.py
Log Message:
Merged fix for cookie delete after paste
--- Updated File CopySupport.py in package Zope2 --
--- CopySupport.py 2001/03/26 18:09:56 1.69
+++ CopySupport.py 2001/03/27 14:48:48 1.70
@@ -269,6 +269,7 @@
REQUEST['RESPONSE'].setCookie('__cp', 'deleted',
path='%s' % REQUEST['SCRIPT_NAME'],
expires='Wed, 31-Dec-97 23:59:59 GMT')
+ REQUEST['__cp'] = None
return self.manage_main(self, REQUEST, update_menu=1,
cb_dataValid=0)
return ''
@@ -276,7 +277,7 @@
manage_renameForm=Globals.DTMLFile('dtml/renameForm', globals())
- def manage_renameObjects(self, ids, new_ids, REQUEST=None):
+ def manage_renameObjects(self, ids=[], new_ids=[], REQUEST=None):
"""Rename several sub-objects"""
if len(ids) != len(new_ids):
raise 'Bad Request','Please rename each listed object.'