[CMF-checkins] CVS: CMF/CMFDefault - DiscussionItem.py:1.38

Chris McDonough chrism at plope.com
Thu Jan 1 00:57:30 EST 2004


Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv18499

Modified Files:
	DiscussionItem.py 
Log Message:
Do not acquire creators attribute (symptom: messages appear to be posted by the object author when they are actually posted by another user).


=== CMF/CMFDefault/DiscussionItem.py 1.37 => 1.38 ===
--- CMF/CMFDefault/DiscussionItem.py:1.37	Tue Dec 23 16:47:24 2003
+++ CMF/CMFDefault/DiscussionItem.py	Thu Jan  1 00:57:30 2004
@@ -107,10 +107,10 @@
     def listCreators(self):
         """ List Dublin Core Creator elements - resource authors.
         """
-        if not hasattr(self, 'creators'):
+        if not hasattr(aq_base(self), 'creators'):
             # for content created with CMF versions before 1.5
             owner = self.getOwner()
-            if self.creator and self.creator != 'unknown':
+            if hasattr(aq_base(self), 'creator') and self.creator != 'unknown':
                 self.creators = ( self.creator, )
             else:
                 self.creators = ()




More information about the CMF-checkins mailing list