[Zope] Form processing in Zope
Karl Munroe
komunroe@uwimona.edu.jm
Fri, 30 Mar 2001 08:44:56 -0800
You cannot nest dtml tags like that, this code will not work:
<dtml-if expr="<dtml-var ActionList> == 1">
Do this
<dtml-elif expr="<dtml-var ActionList> == 2">
Do that.
----------------------------------------------------
You can use the request object like so:
<dtml-if expr="REQUEST['ActionList'] == 1">
Do this
<dtml-elif expr="REQUEST['ActionList'] == 2">
Do that.
or Just pull it out of the namespace:
<dtml-if expr="ActionList == 1">
Do this
<dtml-elif expr="ActionList == 2">
Do that.
The last one is the code you psuedocode you used, surprise,surprise, it
works!!!!!