Déplacement pour eggification.
[Plinn.git] / Products / Plinn / skins / generic / searchableTypes.py
diff --git a/Products/Plinn/skins/generic/searchableTypes.py b/Products/Plinn/skins/generic/searchableTypes.py
new file mode 100644 (file)
index 0000000..276ed46
--- /dev/null
@@ -0,0 +1,15 @@
+##parameters=
+folderishTypes = ['Huge Plinn Folder', 'Calendar', 'Portfolio']
+ttool = context.portal_types
+allFtis = ttool.listTypeInfo()
+
+ftis = []
+for ft in folderishTypes :
+       folderishFti = ttool.getTypeInfo(ft)
+
+       for fti in allFtis :
+               if folderishFti.allowType(fti.id) and fti not in ftis :
+                       ftis.append(fti)
+
+ftis.append(ttool['Discussion Item'])
+return ftis
\ No newline at end of file