src/pyams_content/generations/__init__.py
changeset 829 f933926ed0a1
parent 800 2b5460ecb254
child 835 746f1b2f277a
--- a/src/pyams_content/generations/__init__.py	Tue Jul 10 16:59:55 2018 +0200
+++ b/src/pyams_content/generations/__init__.py	Wed Jul 11 10:18:10 2018 +0200
@@ -19,7 +19,7 @@
 
 # import interfaces
 from pyams_catalog.interfaces import MINUTE_RESOLUTION, DATE_RESOLUTION
-from pyams_content.component.theme import ITagsInfo, IThemesInfo
+from pyams_content.component.theme import ITagsInfo, IThemesInfo, ICollectionsInfo
 from pyams_content.interfaces import IBaseContent, WEBMASTER_ROLE, OWNER_ROLE, PILOT_ROLE, MANAGER_ROLE, \
     CONTRIBUTOR_ROLE
 from pyams_content.root.interfaces import ISiteRootToolsConfiguration
@@ -145,7 +145,11 @@
     ('themes_all', ThesaurusTermsListFieldIndex, {'interface': IThemesInfo,
                                                   'discriminator': 'themes',
                                                   'include_parents': True,
-                                                  'include_synonyms': True})
+                                                  'include_synonyms': True}),
+    ('collections', ThesaurusTermsListFieldIndex, {'interface': ICollectionsInfo,
+                                                   'discriminator': 'collections',
+                                                   'include_parents': False,
+                                                   'include_synonyms': False})
 ]