[Zope] forcing acquired DTML to act as if not acquired

Rik Hoekstra rik.hoekstra@inghist.nl
Thu, 27 Apr 2000 10:58:08 +0200


-----Original Message-----
From: Karl Anderson <kra@monkey.org>
To: zope@zope.org <zope@zope.org>
Date: donderdag 27 april 2000 2:50
Subject: [Zope] forcing acquired DTML to act as if not acquired


>
>I'm trying to make a simple interface to create a subfolder without using
>the management interface.  I'm using a form to get the title.  I want
>the user to be able to use this to create a subfolder anywhere under
>a top folder, and I want all created folders to have the same
>index_html (which also links to the folder creation form), so I'm
>putting the form in the top and having the user reach it and
>index_html through acquisition.
>
>So, in my simplified tests, I have an index_html which contains this
>(all tree items are folders):
>
><dtml-tree expr="PARENTS[0]" branches=objectValues>
> <a href="<dtml-var tree-item-url>/addFolderForm">addFolder</a><br>
></dtml-tree>
>
>where addFolderForm is a form that exists only at the root of the tree
>and is acquired.  addFolderForm is a dtml document, also acquired,
>which contains <dtml-call "manage_addFolder('testname')">.  This is for
>testing, it'll eventually be a form that targets the document.
>

Hm, have you tried using a DTML Method for addFolderForm? This looks like
the problem of trying to add a folder to a DTML Document. This doesn't work
and it adds the added object to the acquisition root. As you describe it
(you actually do end up in the addFolderForm in the right destination?),
this sounds as if it should work.

<snip>

Rik