[Zope] ZPT: How do I see if something is in a sequence?
Evan Simpson
evan@4-am.com
Wed, 15 Aug 2001 00:17:09 -0400
From: "alan runyan" <runyaga@runyaga.com>
> I do this? in DTML its *straight forward*
> <dtml-if "'different' in member.hl_roles">
> I've tried
> tal:condition="python:'different' in member.hl_roles" and
> tal:condition="exists:'different' in member.hl_roles
Unless you've already used tal:define to create a 'member' variable, you
probably want one of these:
tal:condition="python:'different' in here.member.hl_roles"
tal:condition="python:'different' in container.member.hl_roles"
Cheers,
Evan @ 4-am & Zope