[Zope] manage_pasteObjects !!
Florent Guillaume
fg@nuxeo.com
17 Dec 2001 17:29:31 GMT
sanjeev c s <sanju22_us@yahoo.com> wrote:
> Hi,
> I want to copy paste a object to particular folder
> is this syntax correct ??
>
> in a python file
> ------------------------------------------------------
> parameter: catchit
>
> context.foldername.manage_addProduct['OFSP'].manage_pasteObjects(manage_copyObjects(ids=[catchit]))
> -------------------------------------------------------
> catchit contains the name of the object which has to
> be copied to a specified folder, along with its
> properties.
But where is it copied *from* ? The basic syntax is:
cp = sourcefolderobj.manage_copyObjects(ids=[catchit])
destfolderobj.manage_pasteObjects(cp)
Florent
--
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 10 http://nuxeo.com mailto:fg@nuxeo.com