SV: [ZPT] Yuk! Someone please improve on this...

Chris Withers chrisw@nipltd.com
Mon, 10 Sep 2001 15:35:51 +0100


"Magnus Heino (Rivermen)" wrote:
> 
> > Can anyone suggest something nicer or should I start sleeping
> > with my sister?
> 
> <td tal:content="python:item.title or default">&nbsp;</td>

What if title may or not be callable?

I also despise abusing python's 'or' like that, it should have Guido turning in
his grave (if he were in one, which I hope he's not, unless he's secretly a
vampire ;-)

cheers,

Chris