[Zope3-checkins] CVS: zopeproducts/demo/messageboard/step7/browser
- message.py:1.3 thread.py:1.2
Stephan Richter
srichter at cosmos.phy.tufts.edu
Sun Dec 14 19:20:41 EST 2003
Update of /cvs-repository/zopeproducts/demo/messageboard/step7/browser
In directory cvs.zope.org:/tmp/cvs-serv11937/browser
Modified Files:
message.py thread.py
Log Message:
Whee, the mailer tests were seriously broken. This was my first experience
in dealing with the new way to store locations using ILocation. I must say
that I really like it. It is much cleaner this way.
Now step 7 should be fully finctional again.
=== zopeproducts/demo/messageboard/step7/browser/message.py 1.2 => 1.3 ===
--- zopeproducts/demo/messageboard/step7/browser/message.py:1.2 Thu Aug 21 15:05:32 2003
+++ zopeproducts/demo/messageboard/step7/browser/message.py Sun Dec 14 19:20:11 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'
@@ -58,7 +58,7 @@
def change(self):
if 'ADD' in self.request:
emails = self.request['emails'].split('\n')
- getAdapter(self.context,
+ zapi.getAdapter(self.context,
IMailSubscriptions).addSubscriptions(emails)
elif 'REMOVE' in self.request:
emails = self.request['remails']
=== zopeproducts/demo/messageboard/step7/browser/thread.py 1.1 => 1.2 ===
--- zopeproducts/demo/messageboard/step7/browser/thread.py:1.1 Sat Jul 12 12:43:16 2003
+++ zopeproducts/demo/messageboard/step7/browser/thread.py Sun Dec 14 19:20:11 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