[ZPT] Re: [Zope] ZPT: How do I see if something is in a sequence?
Florent Guillaume
fg@nuxeo.com
15 Aug 2001 16:51:33 GMT
Evan Simpson <evan@4-am.com> wrote:
>
> <select name="moderator_ids:list" size="5" multiple>
> <div tal:repeat="member container/portal_membership/listMembers">
> <option tal:condition="python:'Moderator' in member.helplink_roles"
> tal:content="python:member.getUserName()">memberid
> </option>
> </div>
> </select>
If I understand the latest changes, you can even do the following, right ?
<select name="moderator_ids:list" size="5" multiple>
<tal:div repeat="member container/portal_membership/listMembers">
<option tal:condition="python:'Moderator' in member.helplink_roles"
tal:content="python:member.getUserName()">memberid
</option>
</tal:div>
</select>
Florent Guillaume
Nuxeo