[Zope3-checkins] CVS: zopeproducts/demo/messageboard/step5/browser
- message.py:1.3 thread.py:1.2
Stephan Richter
srichter at cosmos.phy.tufts.edu
Sun Dec 14 04:04:49 EST 2003
Update of /cvs-repository/zopeproducts/demo/messageboard/step5/browser
In directory cvs.zope.org:/tmp/cvs-serv9096/browser
Modified Files:
message.py thread.py
Log Message:
Updated step 5.
=== zopeproducts/demo/messageboard/step5/browser/message.py 1.2 => 1.3 ===
--- zopeproducts/demo/messageboard/step5/browser/message.py:1.2 Thu Aug 21 14:40:22 2003
+++ zopeproducts/demo/messageboard/step5/browser/message.py Sun Dec 14 04:04:48 2003
@@ -25,7 +25,7 @@
class MessageDetails:
def author(self):
- """Get user who last modified the Wiki Page."""
+ """Get user who last modified the message."""
creators = zapi.getAdapter(self.context, ICMFDublinCore).creators
if not creators:
return 'unknown'
=== zopeproducts/demo/messageboard/step5/browser/thread.py 1.1 => 1.2 ===
--- zopeproducts/demo/messageboard/step5/browser/thread.py:1.1 Tue Jun 10 17:49:50 2003
+++ zopeproducts/demo/messageboard/step5/browser/thread.py Sun Dec 14 04:04:48 2003
@@ -16,7 +16,6 @@
$Id$
"""
from zopeproducts.messageboard.interfaces import IMessage
-from zope.app.context import ContextWrapper
from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
class Thread:
@@ -30,12 +29,11 @@
children = []
for name, child in self.context.items():
if IMessage.isImplementedBy(child):
- wrapped = ContextWrapper(child, self.context, name=name)
info = {}
info['title'] = child.title
url = self.base_url + name + '/'
info['url'] = url + '@@thread.html'
- thread = Thread(wrapped, self.request, url)
+ thread = Thread(child, self.request, url)
info['thread'] = thread.subthread()
children.append(info)
return children
More information about the Zope3-Checkins
mailing list