Move (i. e. cut&paste) doc / ZClass in dtml
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? Thanks. -- Lars Heber, mailto:Lars.Heber@t-systems.de T-Systems, debis Systemhaus GEI GmbH, Geschaeftsstelle Sachsen
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
participants (2)
-
Lars Heber -
Wolfgang Strobl