Richard Taylor wrote:
We are trying to copy the contents of one folder into another using DTML.
The code below produces the following exception: 'One or more items referred to in the clipboard data was not found. The item may have been moved or deleted after you copied it.'
<dtml-let clip="manage_copyObjects(objectIds())"> <dtml-with Folder> <dtml-with "_.getitem(REQUEST['id'])"> <dtml-call "manage_pasteObjects(clip)"> </dtml-with> </dtml-with> </dtml-let>
This works (mostly) if the getitem call is removed, and the objects are pasted into 'Folder' - which is an instance of a ZClass, which subclasses folder.
I have seen a similar question to this in the archives of this list but I have not found an answer.
Can anyone help?
The problem is that the entire cut and paste mechanism is based on cookies. The best workaround I can think of is to do a copy and then redirect to a method that does the past. Perhaps you can add the need for a DTML and python level cut and past interface to the Interfaces Wiki? http://www.zope.org/Members/michel/Projects/Interfaces -Michel