[Zope] How to use "and" operator in dtml-if
Christian Theune
ct@gocept.com
Wed, 6 Feb 2002 10:12:18 +0100
On Wed, Feb 06, 2002 at 10:01:07AM +0100, Geir B=E6kholt wrote:
>=20
> seems like your use of and is correct , but the fact that it is
> AUTHENTICATED_USER , not AUTHENTICATE_USER as you wrote might have
> something to do with it..
>=20
> :-)
>=20
huh ... that should raise him a KeyError which seems not to be evaluated
because the first part of the "and"-ed term is evaluated false. So go and
look if you can evaluate the level_in=3D=3D'Development' as true first an=
d
then you may see the KeyError exception. :)
Christian
--=20
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,[chr(ord(x)^42) for x in 'zS^BED\nX_FOY\x0b'])