[Zope3-checkins] CVS: Products3/NewsSite/NewsItem - browser.py:1.9 info.pt:1.10
Yvo Schubbe
schubbe@web.de
Thu, 27 Mar 2003 13:11:35 -0500
Update of /cvs-repository/Products3/NewsSite/NewsItem
In directory cvs.zope.org:/tmp/cvs-serv21071/NewsItem
Modified Files:
browser.py info.pt
Log Message:
another small fix retrieving the title property from dublincore
=== Products3/NewsSite/NewsItem/browser.py 1.8 => 1.9 ===
--- Products3/NewsSite/NewsItem/browser.py:1.8 Thu Mar 27 13:05:03 2003
+++ Products3/NewsSite/NewsItem/browser.py Thu Mar 27 13:11:35 2003
@@ -53,6 +53,11 @@
return tuple(members)
+
+ def title(self):
+ return getAdapter(self.context,ICMFDublinCore).title
+
+
def createdString(self):
return self._dateString(getAdapter(self.context,
ICMFDublinCore).created)
=== Products3/NewsSite/NewsItem/info.pt 1.9 => 1.10 ===
--- Products3/NewsSite/NewsItem/info.pt:1.9 Thu Mar 27 13:05:03 2003
+++ Products3/NewsSite/NewsItem/info.pt Thu Mar 27 13:11:35 2003
@@ -4,7 +4,7 @@
</head>
<body>
<div metal:fill-slot="body">
-<h2 tal:content="context/title">News Message</h2>
+<h2 tal:content="view/title">News Message</h2>
<p> Creator: <em tal:content="python: ', '.join(view.getCreator())">Creator</em></p>
<p> <em tal:content="context/teaser">News Message</em></p>
<p tal:content="context/body">News Message</p>