[Zope] How best to copy and paste in pythonscript?

Andreas Jung lists at zopyx.com
Mon Aug 28 06:21:52 EDT 2006



--On 28. August 2006 12:08:16 +0200 Gaute Amundsen <gaute at div.org> wrote:

>
> Hi.
>
> I am having some strange problems getting copy and paste to work
> propperly in   python script
>
> Basically I do:
>
> parent.manage_copyObjects([currFold.id], REQUEST)
>
> in one script, and:
>
> dest_fold.manage_pasteObjects(REQUEST)
>

You must check the APIs carefully. manage_pasteObjects()
takes REQUEST as keyword parameter but not as positional
parameter. So you must pass is it as keyword parameter!

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20060828/0a8ea37b/attachment.bin


More information about the Zope mailing list