Copy and paste uses a cookie to store a reference to the item. After copying you are adding a cookie __cp. Accessing the contents of __cp is a way to see whats in you "clipboard". ----- Original Message ----- From: "Johan Beauce" <jbeauce@odyssey-group.com> To: <zope-dev@zope.org> Sent: Thursday, October 04, 2001 1:34 AM Subject: [Zope-dev] COPY/PASTE problem
Hello,
I would like to copy and paste file in my site. I created "copy button" with this code :
<dtml-let objCopy="_.getattr(PARENTS[0], idChk)"> <dtml-call expr="objCopy.manage_copyObjects([idChk])"> </dtml-let>
this code don't make an error, but I'm not sure that's work! I suppose that "manage_copyObjects()" reference the file in the clipboard, but how can I use the function "paste", maybe like that but it doesn't work ...
<dtml-let objPaste="_.getattr(PARENTS[0],)"> <dtml-call "objPaste.manage_pasteObjects()"> </dtml-let>
how can I view the content of its clipboard ? thanks,
Johan.
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )