8 May
2002
8 May
'02
12:21 p.m.
On Wednesday 08 May 2002 1:15 pm, George M. Ellenburg wrote:
On Wednesday 08 May 2002 08:05 am, Harry Wilkinson wrote:
I think you want "a == 3".
Hmm, now I'm getting: invalid parameter: " == 1", for tag <dtml-if tip == 1>, on line 16 of show_tip
That's because you haven't quoted the 'tip == 1' bit. If you want to use Python expressions, you have to quote them: <dtml-if "tip == 1"> or, more explicitly (explicit is good): <dtml-if expr="tip == 1"> By the way, without wanting to start *another* ZPT vs DTML war, I personally hate DTML and I advise anybody starting out with templating in Zope to head down the ZPT route instead of DTML. IMO your life will be much easier in the long run :) Harry