[Zope-dev] A simple dtml-if question...

Jeff Nielsen / UgoFast Ugo@speakeasy.net
Wed, 6 Jun 2001 22:24:11 -0700


Thanks Christian, but it didn't work. I went with the long way:

    <dtml-if expr="LoginResults=='Pass'">
      <dtml-if expr="PATH_INFO=='/Maintain/Results'">
        Valid response
      <dtml-else>
        False response
      </dtml-if>
    <dtml-else>
        False response
    </dtml-if>

Jeff

-----Original Message-----
From: Christian Theune [mailto:ct@gocept.com]
Sent: Wednesday, June 06, 2001 1:05 AM
To: Jeff Nielsen / UgoFast
Subject: Re: [Zope-dev] A simple dtml-if question...


>
> <dtml-if expr="LoginResults=='Pass'" .and. expr="PATH_INFO=='/'">
>
hmm ... just guessing:

<dtml-if expr="( LoginResults=='adsf' && PATH_INFO=='/')">

Think so: It has to be a complete boolean expression .. so try to
combine boolean operators ...
Tell me if it worked ... :)

--
Christian Theune - ct@gocept.com
gocept gmbh & co.kg - schalaunische strasse 6 - 06366 koethen/anhalt
tel.+49 3496 3099112 - fax.+49 3496 3099118 mob. - 0178 48 33 981

reduce(lambda x,y:x+y,map(lambda
x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))