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

Stephan Richter srichter at cosmos.phy.tufts.edu
Sun Dec 14 03:05:09 EST 2003


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

Modified Files:
	message.py thread.py 
Log Message:
Updated step 4. It is now working again.


=== zopeproducts/demo/messageboard/step4/browser/message.py 1.2 => 1.3 ===
--- zopeproducts/demo/messageboard/step4/browser/message.py:1.2	Wed Aug 20 14:56:10 2003
+++ zopeproducts/demo/messageboard/step4/browser/message.py	Sun Dec 14 03:05:09 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/step4/browser/thread.py 1.1 => 1.2 ===
--- zopeproducts/demo/messageboard/step4/browser/thread.py:1.1	Tue Jun 10 17:47:51 2003
+++ zopeproducts/demo/messageboard/step4/browser/thread.py	Sun Dec 14 03:05:09 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,15 +29,13 @@
         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
 
     subthread = ViewPageTemplateFile('subthread.pt')
-




More information about the Zope3-Checkins mailing list