[ZPT] Memory Leak still?

Evan Simpson evan@zope.com
Mon, 10 Dec 2001 16:52:32 -0500


Ron Bickers wrote:

> <a tal:omit-tag="python:not path('template/titlelink | nothing') or nothing"
> ...>
> 
> If I leave out the "| nothing", I get an exception if titlelink doesn't
> exist.  If I leave out "or nothing", I get the <a> tag even when titlelink
> is blank.  Correct?

"not:template/titlelink | nothing" should do what you want.  If 'titlelink' 
exists but is blank, this is just as good a boolean false as 'nothing' is.

Cheers,

Evan @ Zope