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

Stephan Richter srichter at cosmos.phy.tufts.edu
Mon Dec 15 11:28:14 EST 2003


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

Modified Files:
	message.py messageboard.py thread.py 
Log Message:
Updated step 12 (creating new skins).


=== zopeproducts/demo/messageboard/step12/browser/message.py 1.2 => 1.3 ===
--- zopeproducts/demo/messageboard/step12/browser/message.py:1.2	Thu Aug 21 17:22:44 2003
+++ zopeproducts/demo/messageboard/step12/browser/message.py	Mon Dec 15 11:27:43 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/step12/browser/messageboard.py 1.2 => 1.3 ===
--- zopeproducts/demo/messageboard/step12/browser/messageboard.py:1.2	Thu Aug 21 17:22:44 2003
+++ zopeproducts/demo/messageboard/step12/browser/messageboard.py	Mon Dec 15 11:27:43 2003
@@ -23,7 +23,6 @@
 from zopeproducts.messageboard.interfaces import IMessage
 
 from zope.app.browser.container.adding import Adding
-from zope.app.context import ContextWrapper
 from zope.app.services.service import ServiceManager, ServiceRegistration
 from zope.app.services.servicenames import Workflows
 from zope.app.traversing import getPath, getParent, traverse
@@ -62,7 +61,7 @@
             registration = ServiceRegistration(Workflows, wf_path, site)
             wf_id = rm.setObject('', registration)
             rm[wf_id].status = ActiveStatus
-            
+                        
             # Create Default Processdefinition
             default.setObject('MB-WFProcesses',
                               StatefulProcessDefinition())
@@ -97,10 +96,9 @@
         msgs = []
         for name, msg in wrapped_pmsg.items():
             if IMessage.isImplementedBy(msg):
-                wrapped_msg = ContextWrapper(msg, wrapped_pmsg, name=name)
                 if hasMessageStatus(msg, 'pending'):
-                    msgs.append(ContextWrapper(msg, wrapped_msg, name=name))
-                msgs += self.getPendingMessages(wrapped_msg)
+                    msgs.append(msg)
+                msgs += self.getPendingMessages(msg)
         return msgs
 
     def getPendingMessagesInfo(self):


=== zopeproducts/demo/messageboard/step12/browser/thread.py 1.1 => 1.2 ===
--- zopeproducts/demo/messageboard/step12/browser/thread.py:1.1	Mon Jul 21 17:33:49 2003
+++ zopeproducts/demo/messageboard/step12/browser/thread.py	Mon Dec 15 11:27:43 2003
@@ -17,7 +17,6 @@
 """
 from messageboard import hasMessageStatus
 from zopeproducts.messageboard.interfaces import IMessage
-from zope.app.context import ContextWrapper
 from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
 
 class Thread:
@@ -32,12 +31,11 @@
         for name, child in self.context.items():
             if IMessage.isImplementedBy(child) and \
                    hasMessageStatus(child, 'published'):
-                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