[CMF-checkins] CVS: CMF - DiscussionItem.py:1.16

Jens Vagelpohl jens@digicool.com
Tue, 10 Jul 2001 11:06:17 -0400 (EDT)


Update of /cvs-repository/CMF/CMFDefault
In directory korak.digicool.com:/tmp/cvs-serv27094

Modified Files:
	DiscussionItem.py 
Log Message:
Refinements for displaying discussion items:

- hasReplies in DiscussionItem.py now simply returns the total length of the talkback object, 
meaning the number reflects the total of all comments posted (response to CMF Tracker 328)

- viewThreadsAtBottom utilizes the new hasReplies to display the total number of comments, 
but only when the top content object is viewed.





--- Updated File DiscussionItem.py in package CMF --
--- DiscussionItem.py	2001/06/17 19:21:05	1.15
+++ DiscussionItem.py	2001/07/10 15:05:47	1.16
@@ -340,10 +340,7 @@
         """
             Test to see if there are any dicussion items
         """
-        if len(self._container) == 0:
-            return 0
-
-        return len( self._getReplyResults() )
+        return len( self._container )
 
     security.declareProtected( CMFCorePermissions.View, 'getReplies' )
     def getReplies( self ):