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

Stephan Richter srichter at cosmos.phy.tufts.edu
Sat Dec 13 01:39:22 EST 2003


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

Modified Files:
	thread.py 
Log Message:
Fixed step 2. The fix in the recipe is coming soon.


=== zopeproducts/demo/messageboard/step2/browser/thread.py 1.1 => 1.2 ===
--- zopeproducts/demo/messageboard/step2/browser/thread.py:1.1	Sun Jun  8 20:45:19 2003
+++ zopeproducts/demo/messageboard/step2/browser/thread.py	Sat Dec 13 01:39:21 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