[Zope-CMF] copy and paste?
Tres Seaver
tseaver@zope.com
28 Oct 2002 06:11:15 -0500
On Mon, 2002-10-28 at 04:57, Paul Naveen Raj Jeyaraj wrote:
> Where can I find the code for copying and pasting the portal objects?
> I need to write my own code for our requirement and so it would be
> helpful if I could see how the inbuilt copy, paste mechanism works.
> Thank you.
The CMF provides skin methods for this:
- http://cvs.zope.org/CMF/CMFDefault/skins/control/folder_copy.py
- http://cvs.zope.org/CMF/CMFDefault/skins/control/folder_cut.py
- http://cvs.zope.org/CMF/CMFDefault/skins/control/folder_paste.py
Note that these methods merely sit atop Zope's "stock" clipboard
handling (in order to redirect them appropriately):
- http://cvs.zope.org/Zope/lib/python/OFS/CopySupport.py
Tres.
--
===============================================================
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com