/[pac]/pac/PACDefault/PACTool.py
ViewVC logotype

Diff of /pac/PACDefault/PACTool.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by tvon, Tue Nov 11 14:52:01 2003 UTC revision 1.14 by tvon, Tue Nov 11 15:37:59 2003 UTC
# Line 335  class PACTool (UniqueObject, SimpleItem) Line 335  class PACTool (UniqueObject, SimpleItem)
335      security.declarePublic('numTalkingPoints')      security.declarePublic('numTalkingPoints')
336      def numTalkingPoints(self, folder):      def numTalkingPoints(self, folder):
337          tp = []          tp = []
338          tp = folder.portal_catalog( path=string.join(          tp = folder.getFolderContents(contentFilter={'portal_type': 'TalkingPoint',},suppressHiddenFiles=1)
             folder.getPhysicalPath()[:-1], '/'), meta_type = 'TalkingPoint')  
339    
340          return len(tp)          return len(tp)
341    
342      security.declarePublic('randomTalkingPoint')      security.declarePublic('randomTalkingPoint')
343      def randomTalkingPoint(self, folder, num):      def randomTalkingPoint(self, folder, num):
344          tp = []          tp = []
345          tp = folder.portal_catalog(  
346                  path=string.join(          tp = folder.getFolderContents(contentFilter={'portal_type': 'TalkingPoint',},suppressHiddenFiles=1)
                     folder.getPhysicalPath()[:-1], '/'),  
                 meta_type = 'TalkingPoint')  
347    
348          res = []          res = []
349          for i in tp:          for i in tp:

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26