Daniel Chudnov wrote:
(zope-2.1.6, rh6-linux)
How come I can't do this:
dtml-if "var1 and var2"
dtml-call somefuncNeedingVar1AndVar2
/dtml-if
Your problem is probably related to namespaces and aquisition.
Aquisition is best monster you'll ever meet. s
What you're calling
On Mon, 11 Sep 2000, Tim Cook wrote:
Your problem is probably related to namespaces and aquisition.
Aquisition is best monster you'll ever meet. s
snip/
FreePM Project Coordinator http://www.freepm.org
OSHCA Founding Supporter http://www.oshca.org
...hey thanks for the reading
Daniel Chudnov writes:
dtml-if "var1 and var2"
dtml-call somefuncNeedingVar1AndVar2
/dtml-if
dtml-if var is equivalent to dtml-if "_.has_key('var') and var".
Thus, for dtml-if var1 and var2, you should use:
dtml-if "(_.has_key('var1') and var1) and (_.has_key('var2') and
(zope-2.1.6, rh6-linux)
How come I can't do this:
dtml-if "var1 and var2"
dtml-call somefuncNeedingVar1AndVar2
/dtml-if
...or other obvious (e.g. (extra) (parenthesized)) variations thereupon,
but the following seem to work:
dtml-if "_.has_key('var1') and _.has_key('var2')"
...