58f9d40b9035c78b1f040fb393dd15a998d6ee28
[Plinn.git] / skins / generic / searchableTypes.py
1 ##parameters=
2 folderishTypes = ['Plinn Folder', 'Calendar', 'Portfolio']
3 ttool = context.portal_types
4 allFtis = ttool.listTypeInfo()
5
6 ftis = []
7 for ft in folderishTypes :
8 folderishFti = ttool.getTypeInfo(ft)
9
10 for fti in allFtis :
11 if folderishFti.allowType(fti.id) and fti not in ftis :
12 ftis.append(fti)
13
14 ftis.append(ttool['Discussion Item'])
15 return ftis