[Zope] manage_cutObjects/manage_pasteObjects problem ...

Dieter Maurer dieter at handshake.de
Sun Jul 27 02:16:06 EDT 2008


Ajay Deshpande wrote at 2008-7-23 10:36 +0530:
>Ive been trying to cut objects from one context and paste them into another
>using a script python. But I get a "CopyError" when I try doing this. This
>is my code snippet and the traceback ...
>
>Snippet...
>...
>obj = context.restrictedTraverse(path)
>obj_parent = obj.aq_inner.aq_parent
>dest_folder = context.Dest # this is a folder object
>copy_info = obj_parent.manage_cutObjects((context.getId()))
>dest_folder.manage_pasteObjects(copy_info)
>...
>
>Traceback:
>Traceback (innermost last):
>  Module ZPublisher.Publish, line 115, in publish
>  Module ZPublisher.mapply, line 88, in mapply
>  Module ZPublisher.Publish, line 41, in call_object
>  Module OFS.CopySupport, line 194, in manage_pasteObjects
>  Module OFS.CopySupport, line 527, in _verifyObjectPaste
>Copy Error:

Usually, Zope error messages and tracebacks are quite informative.

The unhelpful error messages from "CopySupport" are an exception.
For them, you must look at the Code (near line 527 of "CopySupport.py")
and check, what it really did not like.



-- 
Dieter


More information about the Zope mailing list