[Zope] Move (i. e. cut&paste) doc / ZClass in dtml
Wolfgang Strobl
ws@gmd.de
Thu, 15 Mar 2001 12:20:44 +0100
On 15 Mar 2001, 11:48 Lars Heber wrote:
> I have been searching the list for a some hours now, but could not
> find a satisfying solution.
>
> All I wanna do is moving a ZClass (or simply a doc) from one folder to
> another programmatically.
>
> Could anybody give me a hint; please?
I never tried it before, but after a short look into CopySupport.py,
what=context.manage_cutObjects(ids=['objecttobemoved'])
context.somefolder.anotherfolder.manage_pasteObjects(what)
print "done"
worked on the first try, from a PythonScript.
-- ws