[ZPT] Python expressions in Paths?

Brad Clements bkc@murkworks.com
Wed, 8 Aug 2001 14:41:24 -0400


I've found myself needing to use some simple python expressions in paths, but there 
seems to be no way to express that. I end up falling back to using defines, but then 
sometimes I need an outer tag to get the logic correct.

omit_tag will help, but still be crufty. Is there any way to evaluate a python expression 
within a path.

Like, 

tal:content="item.value+'xyz' | string:No such value"

where if item.value throws a NameError or KeyError, we move on to processing the 
string: thing..

This is a poor example of what I mean, sorry.



Brad Clements,                bkc@murkworks.com   (315)268-1000
http://www.murkworks.com                          (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com               AOL-IM: BKClements