[CMF-checkins] CVS: Products/CMFDefault - DiscussionTool.py:1.22
Stefan H. Holek
stefan at epy.co.at
Wed Jan 19 08:44:07 EST 2005
Update of /cvs-repository/Products/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv14443
Modified Files:
DiscussionTool.py
Log Message:
Make sure getDiscussionFor returns a wrapped talkback object.
=== Products/CMFDefault/DiscussionTool.py 1.21 => 1.22 ===
--- Products/CMFDefault/DiscussionTool.py:1.21 Thu Aug 12 11:07:40 2004
+++ Products/CMFDefault/DiscussionTool.py Wed Jan 19 08:43:36 2005
@@ -106,10 +106,10 @@
talkback = getattr(content, 'talkback')
else:
talkback = getattr( aq_base(content), 'talkback', None )
- if not talkback:
+ if talkback is None:
talkback = self._createDiscussionFor( content )
- return talkback
+ return content.talkback # Return wrapped talkback
security.declarePublic( 'isDiscussionAllowedFor' )
def isDiscussionAllowedFor( self, content ):
More information about the CMF-checkins
mailing list