nuxeo-checkins
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nuxeo-checkins] CVS: NuxForum Posting.py,1.4,1.5


From: Juan David Ibáñez Palomar
Subject: [Nuxeo-checkins] CVS: NuxForum Posting.py,1.4,1.5
Date: Tue, 14 May 2002 12:34:01 -0400

Update of /cvsroot/nuxeo/NuxForum
In directory subversions:/tmp/cvs-serv10068

Modified Files:
        Posting.py 
Log Message:
Fix.


Index: Posting.py
===================================================================
RCS file: /cvsroot/nuxeo/NuxForum/Posting.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** Posting.py  14 May 2002 16:21:55 -0000      1.4
--- Posting.py  14 May 2002 16:33:59 -0000      1.5
***************
*** 69,74 ****
      def get_number_of_comments(self):
          """Returns the total number of comments to this post."""
!         n = self.count
!         for comment in self.get_comments():
              n = n + comment.get_number_of_comments()
  
--- 69,75 ----
      def get_number_of_comments(self):
          """Returns the total number of comments to this post."""
!         comments = self.get_comments()
!         n = len(comments)
!         for comment in comments:
              n = n + comment.get_number_of_comments()
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]