Re: Doubt about the ZPT example in Using Zope Page Templates
item/title is not valid python syntax. Ok I see.
using "python:item.title or default" or even cleaner, a tales-statement: "item/title | default" just might help.. I also think that the later is cleaner, but it doesn't work for me. I did: <td tal:content="item/title | default">No Title</td>
But I got the same results when doing: <td tal:content="item/title">No Title</td>
Josef Meile wrote at 2003-6-27 12:28 +0200:
using "python:item.title or default" or even cleaner, a tales-statement: "item/title | default" just might help.. I also think that the later is cleaner, but it doesn't work for me. I did: <td tal:content="item/title | default">No Title</td>
But I got the same results when doing: <td tal:content="item/title">No Title</td>
Because "item/title" is defined (just empty). Dieter
participants (2)
-
Dieter Maurer -
Josef Meile