[Zope] with-tag-problem ..

Phillip J. Eby pje@telecommunity.com
Wed, 22 Dec 1999 09:16:18 -0500


At 11:23 AM 12/22/99 +0100, Geir B Hansen wrote:
>
>
>Hiyah zopistas.
>
>I am estranged to why i cannot solve this problem by myself.
>I thought I had finally come to peace with namespaces and objects,
>but, alas, no..
>
>I have a method which makes a folder and creates users with local
>roles for it, based on submissions from a form. The problem is, I want
>to make another object, let's say another folder, within my newly
>created folder.
>
>
><dtml-call "REQUEST.set('id',REQUEST.name)">
><dtml-call "acl_users.manage_users(submit='Add',REQUEST=REQUEST)">
><dtml-call "manage_addFolder(REQUEST.name, REQUEST=REQUEST)">
>
><---with tag to get within the newly created folder goes here---->
><dtml-call "manage_addFolder('testfolderwithin', REQUEST=REQUEST)">
><--end the with tag----->
>
>tried all variations of the with tag i could think of, but without success:
><dtml-with name>
><dtml-with "name">
><dtml-with _['name']>

I believe you're looking for:

<dtml-with "_[name]">

Note the double quotes to indicate an expression, and the lack of single
quotes around name, indicating it is a variable rather than a string constant.