EHLO
In the following code I am doing two list lookups. Is there a way or
a trick to have a if: else: to optimize this ?
<td class="center" py:if="not tg.identity.anonymous">
<span py:if="tg.identity.user not in g.users">
<a href="${tg.url('./join/%s' % g.id)}">
<img src="/static/images/btn-plus.png" alt="+"
title="Join that group" /></a>
</span>
<span py:if="tg.identity.user in g.users">
<a href="${tg.url('./leave/%s' % g.id)}">
<img src="/static/images/btn-minus.png" alt="-"
title="Leave that group" /></a>
</span>
</td>
-fred-
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---