[zopeorg-checkins] CVS: Products/ZopeOrg/skeleton/News - local_html.pt:1.11
Martijn Pieters
mj at zope.com
Tue Jan 29 12:15:56 EST 2002
Update of /cvs-zopeorg/Products/ZopeOrg/skeleton/News
In directory cvs.zope.org:/tmp/cvs-serv4441/skeleton/News
Modified Files:
local_html.pt
Log Message:
Fix the news page; TitleOrId is now a Python Script that needs to explicitely
be told not to call Title and getID; they are catalog brains attributes in this
instance.
=== Products/ZopeOrg/skeleton/News/local_html.pt 1.10 => 1.11 ===
<td>
<a href="" tal:attributes="href evtURL">
- <span tal:content="event/TitleOrId" />
+ <span tal:content="python:event.TitleOrId(dontCall=1)" />
</a>
</td>
<td tal:define="st event/start; end event/end"
@@ -94,7 +94,7 @@
tal:condition="zopeNews">
<p><a href="item_url"
tal:attributes="href zopeNews/absolute_url"
- tal:content="zopeNews/TitleOrId" class="bTitle">Title</a>
+ tal:content="python:zopeNews.TitleOrId(dontCall=1)" class="bTitle">Title</a>
<br><span tal:condition="exists: zopeNews/Description"
tal:content="zopeNews/Description">Description</span></p>
<p><a href="item_url"
@@ -118,7 +118,7 @@
</td>
<td>
<a href="" tal:attributes="href itemURL">
- <span tal:content="item/TitleOrId" />
+ <span tal:content="python:item.TitleOrId(dontCall=1)" />
</a>
</td>
<td align="right"
More information about the zopeorg-checkins
mailing list