[CMF-checkins] CVS: CMF - PortalContent.py:1.16
andrew@digicool.com
andrew@digicool.com
Fri, 1 Jun 2001 14:43:34 -0400 (EDT)
Update of /cvs-repository/CMF/CMFCore
In directory korak.digicool.com:/tmp/cvs-serv27119
Modified Files:
PortalContent.py
Log Message:
*Fix gettattr wrapping in objectItems to stop discussion item's
from acquiring talkbacks when they don't have one.
--- Updated File PortalContent.py in package CMF --
--- PortalContent.py 2001/05/31 22:23:38 1.15
+++ PortalContent.py 2001/06/01 18:43:33 1.16
@@ -250,7 +250,8 @@
right now, I will return that. Should be replaced with
a list of tuples for every opaque item!
"""
- talkback = getattr(self, 'talkback', None)
+ if hasattr( aq_base( self ), 'talkback' ):
+ talkback = self.talkback
if talkback is not None:
return ((talkback.id, talkback),)
else: