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

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


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

Modified Files:
	message.py thread.py 
Log Message:
Updated code.

Removed extract.py, since the one in zope.app is now generic enough

Added messageboard.pot file. 

Updated translations, now that we can also i18n and l10n ZCML.


=== zopeproducts/demo/messageboard/step6/browser/message.py 1.2 => 1.3 ===
--- zopeproducts/demo/messageboard/step6/browser/message.py:1.2	Thu Aug 21 14:45:59 2003
+++ zopeproducts/demo/messageboard/step6/browser/message.py	Sun Dec 14 05:30:12 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/step6/browser/thread.py 1.1 => 1.2 ===
--- zopeproducts/demo/messageboard/step6/browser/thread.py:1.1	Thu Jul 10 16:33:57 2003
+++ zopeproducts/demo/messageboard/step6/browser/thread.py	Sun Dec 14 05:30:12 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