[ZPT] Path expression

Dieter Maurer dieter@handshake.de
Fri, 19 Apr 2002 00:07:03 +0200


Tom Deprez writes:
 > I've tried every possibility from the Zope Book examples, but I can't get it
 > to work.
 > 
 > Basicly I need to get a variable out of the namespace and if it doesn't
 > exists, nothing must happen as in
 > 
 > tal:content="here/myvar | nothing;"
 > 
 > however, myvar is dynamic, does I should use:
 > 
 > tal:content="python:path('here/%s'%myvar')"
use:

	path('here/%s | nothing' % myvar)


Dieter