[Zope] What If It Doesn't Have a Key?

Andreas Jung lists at zopyx.com
Mon Aug 13 12:47:33 EDT 2007



--On 13. August 2007 12:36:13 -0400 tonylabarbara at aol.com wrote:

> Hi;
> I have this line of code:
> <span tal:condition="python:request.has_key('checkbox_1')"
> tal:omit-tag=""> I would like to do the exact opposite of that. In other
> words, have the condition render if checkbox_1 does not exist. How do I
> do that? TIA,
> Tony
>

Look at the 'not:' directive.

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20070813/9933d394/attachment.bin


More information about the Zope mailing list