[Zope] manage_clone problem

Rik Hoekstra hoekstra@fsw.leidenuniv.nl
Mon, 23 Aug 1999 22:17:11 +0200


To:             	Zope Mailing List <zope@zope.org>
Subject:        	[Zope] manage_clone problem

> I have created a DTML Document in the root directory that is supposed to
> be used from all subdirs of my web application.
> This document contains a call to manage_clone(), which should copy an
> object from some other folder into the _current_ folder.
> But as the DTML is stored in the root directory, manage_clone always
> clones into the _rootdir_, too.
> 
> this is the call:
> <!--with "manage_clone(foo.bar,'new_id',REQUEST)"-->
> 

I have done something very similar, with success. I only used a DTML 
method to do the manage_cloning. As this seems to be a namespace 
issue, you could try to change to a DTML method or perhaps a 
<dtml-with "PARENTS[0]"> would help.

Rik Hoekstra