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: |