problems with manage_clone
Hi, my Folders look like this: /templ/link (DTML Doc) /m945/process (DTML Meth) /subfolder one thing I try do do for testing is to clone the "link" object with the "process" method which looks like this: <dtml-with sendung> <dtml-call "manage_clone(link, 'new_id', REQUEST)"> </dtml-with> After reading the Acquisition docs and the Namespace HowTo i thought that the namespace stack of "process" would contain the root folder and the "templ" folder too. But when i run the "process" method i get the following error: Error Type: NameError Error Value: link do I have to put the "link" object into the root folder? assuming i get this to work how can i then clone a new object to the "subfolder"?? Is there a way to provide manage_clone() with dest. object with a certain namespace? Thanks Oliver
Hi sorry to answer my own question and sorry for the confusion. Now i found the solution to my problem. / /templ/link /sendung/ /m945/process "process" does now clone the "link" object to the "sendung" container with the following piece of code. <dtml-with templ> <dtml-with sendung> <dtml-call "manage_clone(link, 'new_id', REQUEST)"> </dtml-with> </dtml-with> the remaining question is if there's a better way to control the namespace of the two objects in the manage_clone call to have a differently ordered name- space for the two of them etc... Oliver
participants (1)
-
Oliver Frommel