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.6,1.7


From: Juan David Ibáñez Palomar
Subject: [Nuxeo-checkins] CVS: NuxForum Posting.py,1.6,1.7
Date: Thu, 16 May 2002 10:09:36 -0400

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

Modified Files:
        Posting.py 
Log Message:
Fix..


Index: Posting.py
===================================================================
RCS file: /cvsroot/nuxeo/NuxForum/Posting.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** Posting.py  15 May 2002 16:41:42 -0000      1.6
--- Posting.py  16 May 2002 14:09:32 -0000      1.7
***************
*** 80,89 ****
          """ """
          manager = getSecurityManager()
          postings = []
!         for x in range(self.count):
!             posting = getattr(self, str(x))
              if manager.checkPermission('View', posting):
                  postings.append(posting)
-         postings.reverse()
  
          return postings
--- 80,92 ----
          """ """
          manager = getSecurityManager()
+ 
+         ids = self.objectIds()
+         ids.sort()
+ 
          postings = []
!         for id in ids:
!             posting = getattr(self, id)
              if manager.checkPermission('View', posting):
                  postings.append(posting)
  
          return postings




reply via email to

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