Re: [Zope] newbie dtml-if/expr ?

2000-09-11 Thread Tim Cook
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

Re: [Zope] newbie dtml-if/expr ?

2000-09-11 Thread Daniel Chudnov
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

Re: [Zope] newbie dtml-if/expr ?

2000-09-11 Thread Dieter Maurer
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] newbie dtml-if/expr ?

2000-09-10 Thread Daniel Chudnov
(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')" ...