Re: [Zope-dev] Re: ZPT and else

2002-05-11 Thread Florent Guillaume
Brent Hendricks [EMAIL PROTECTED] wrote: Another way to do this is to use the python test() function inside tal:replace to conditionally replace the if content with the else content. For example: div id=edit-area tal:define=editItems python:here.getMenuItem(...) h3Edit

[Zope-dev] Re: ZPT and else

2002-05-10 Thread Brent Hendricks
Quoting Jeffrey P Shell: The 'not' TALES namespace is valuable. The downside is that you evaluate the expression twice. A good way to work within this is something that I did earlier today, outside of this conversation, where I evaluate an expression earlier and assign it to a