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 ...
>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()))
>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.

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to