[Zope-dev] Problem with programmatic copy and paste
Richard Taylor
R.Taylor@eris.dera.gov.uk
Tue, 4 Apr 2000 08:00:10 +0100
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?
Richard
--
Richard Taylor (Senior Analyst)
Information Systems Department (CIS3)
DERA
Malvern, Woodward Building, Room B106
The Information contained in this E-Mail and any subsequent correspondence
is private and is intended solely for the intended recipient(s).
For those other than the recipient any disclosure, copying, distribution,
or any action taken or omitted to be taken in reliance on such information is
prohibited and may be unlawful.