[Zope] problem with namespaces and manage_clone

Oliver Frommel oliver@aec.at
Wed, 20 Oct 1999 13:03:30 +0200 (CEST)


Hello,

while trying to clone a new object from a given template I am encountering
the following problem:

the folder structure looks like this:

root/templ/templ_dtml_doc
    /dept/my_clone_method
         /market/
         /eng/
         /quality/

in the templ folder I created some DTML docs with special propierties to contain
the data I need. In the dept folder i have a DTML method that's supposed to
clone the object from templ in one of the depts subfolders and change
some of its properties accordingly. 
(Similar to the example in the ZCMG, but with a difference)

Now i just can't figure out how to reference the two objects in the call to
the manage_clone. Neither of these attempts seem to work:

1. my_clone_method (supposed to clone a new object in /dept/ e.g.):
<dtml-in templ>
 <dtml-call "manage_clone(templ_dtml_doc, new, REQUEST)">
</dtml-in>

1. my_clone_method (supposed to clone a new object in /dept/ e.g.):
<dtml-call "manage_clone(PARENTS[0].templ.templ_dtml_doc, eng.new, REQUEST)">

3. my_clone_method (supposed to clone a new object in /dept/eng/):
<dtml-in templ>
 <dtml-call "manage_clone(templ_dtml_doc, eng.new, REQUEST)">
</dtml-in>

thanks for your help ..
Oliver