From: <vmilitaru@sympatico.ca>
When I execute the following python code (from within a method of an instantiated object):
myClipboard = self.aq_parent.manage_cutObjects(id) destination_folder = getattr(my_root_folder,'dest') destination_folder.manage_pasteObjects(myClipboard)
I get the error: 'The object <my object id> does not support this operation.'
Can you cut and paste the objects manually from within the ZMI?
And I don't get it. I thought that by making my object inherit from 'OFS.SimpleItem.Item', I get cut&paste support.
What you get is inheritance of the "CopySource" object, and the manage_afterClone() functions that get called when you copy and paste. Have you inherited from any other objects? You have the copy/paste support in OFS.CopySupport, both the basic "CopySource" and the "CopyContainer". These together does most of the work. It's basically a question of doing a _delObject() and a _setObject() with some checks around it.