[Zope3-checkins] CVS: zopeproducts/demo/messageboard/step3/browser - message.py:1.3 thread.py:1.2

Stephan Richter srichter at cosmos.phy.tufts.edu
Sun Dec 14 00:50:31 EST 2003


Update of /cvs-repository/zopeproducts/demo/messageboard/step3/browser
In directory cvs.zope.org:/tmp/cvs-serv9630/browser

Modified Files:
	message.py thread.py 
Log Message:
Updated step 3 of the content components recipes. Everything is working 
again.


=== zopeproducts/demo/messageboard/step3/browser/message.py 1.2 => 1.3 ===
--- zopeproducts/demo/messageboard/step3/browser/message.py:1.2	Wed Aug 20 14:32:34 2003
+++ zopeproducts/demo/messageboard/step3/browser/message.py	Sun Dec 14 00:50:30 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/step3/browser/thread.py 1.1 => 1.2 ===
--- zopeproducts/demo/messageboard/step3/browser/thread.py:1.1	Tue Jun 10 10:40:44 2003
+++ zopeproducts/demo/messageboard/step3/browser/thread.py	Sun Dec 14 00:50:30 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