[Zope] REQUEST[] problem

Evan Simpson evan@4-am.com
Fri, 22 Oct 1999 17:46:30 +0000


Oliver Frommel wrote:

> When I replace the variable in the second dtml-if tag I get the object cloned
> in the wrong folder ("sendung") although the value if REQUEST['sdg'] is "y":
>
>  <dtml-with sendung>
>   DEBUG: REQUEST['sdg'] = <dtml-var "REQUEST['sdg']"><br>
>   <dtml-with "REQUEST['sdg']">
>    <dtml-with "manage_clone(templ.link, ZopeTime().Time(), REQUEST)">
>    <dtml-call "manage_changeProperties(
>            title = REQUEST['url'],
>            text = REQUEST['text'],
>            url = REQUEST['url']
>     )">
>    </dtml-with>
>   </dtml-with>
>  </dtml-with>

<dtml-with "REQUEST['sdg']"> is putting the string "y" onto the namespace stack,
which has no effect whatsoever.

Try <dtml-with "_[REQUEST['sdg']]"> instead.

Evan