[Zope] manage_clone problem
Jim Fulton
jim@digicool.com
Thu, 26 Aug 1999 08:56:33 -0400
Heiko Stoermer wrote:
>
> 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)"-->
Try using a DTML method instead of a document.
When a document is sed, it's namespace is searched first and
it acquires manage_clone from the place it comes from.
DTML methods will get variables from the environment they run in.
Jim