Re: [Zope] What If It Doesn't Have a Key?
Oh <;) Thanks. Tony -Original Message- From: Andreas Jung <[EMAIL PROTECTED]> To: [EMAIL PROTECTED]; zope@zope.org Sent: Mon, 13 Aug 2007 12:47 pm Subject: Re: [Zope] What If It Doesn't Have a Key? ? --On 13. August 2007 12:36:13 -0400 [EMAIL PROTECTED] wrote:? ? > Hi;? > I have this line of code:? > 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? AOL now offers free email to everyone. Find out more about what's free from AOL at AOL.com. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] What If It Doesn't Have a Key?
On 8/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I have this line of code: > Better written as > 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? Either use a 'not' in your python expression ("python:not request.has_key") or use the not: tales modifier: -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] What If It Doesn't Have a Key?
--On 13. August 2007 12:36:13 -0400 [EMAIL PROTECTED] wrote: Hi; I have this line of code: 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 pgpdaqNta21Ho.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )