[Top][All Lists]
[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()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Nuxeo-checkins] CVS: NuxForum Posting.py,1.4,1.5,
Juan David Ibáñez Palomar <=
- Prev by Date:
[Nuxeo-checkins] CVS: NuxForum CatalogAware.py,1.1,1.2 Forum.py,1.6,1.7 Posting.py,1.3,1.4
- Next by Date:
[Nuxeo-checkins] CVS: NuxForum/ui Forum_index.zpt,1.2,1.3 Posting_actions.zpt,1.3,1.4
- Previous by thread:
[Nuxeo-checkins] CVS: NuxForum CatalogAware.py,1.1,1.2 Forum.py,1.6,1.7 Posting.py,1.3,1.4
- Next by thread:
[Nuxeo-checkins] CVS: NuxForum/ui Forum_index.zpt,1.2,1.3 Posting_actions.zpt,1.3,1.4
- Index(es):