equal
deleted
inserted
replaced
17 import logging |
17 import logging |
18 logger = logging.getLogger("PyAMS (content)") |
18 logger = logging.getLogger("PyAMS (content)") |
19 |
19 |
20 # import interfaces |
20 # import interfaces |
21 from pyams_catalog.interfaces import MINUTE_RESOLUTION, DATE_RESOLUTION |
21 from pyams_catalog.interfaces import MINUTE_RESOLUTION, DATE_RESOLUTION |
22 from pyams_content.component.theme import ITagsInfo, IThemesInfo |
22 from pyams_content.component.theme import ITagsInfo, IThemesInfo, ICollectionsInfo |
23 from pyams_content.interfaces import IBaseContent, WEBMASTER_ROLE, OWNER_ROLE, PILOT_ROLE, MANAGER_ROLE, \ |
23 from pyams_content.interfaces import IBaseContent, WEBMASTER_ROLE, OWNER_ROLE, PILOT_ROLE, MANAGER_ROLE, \ |
24 CONTRIBUTOR_ROLE |
24 CONTRIBUTOR_ROLE |
25 from pyams_content.root.interfaces import ISiteRootToolsConfiguration |
25 from pyams_content.root.interfaces import ISiteRootToolsConfiguration |
26 from pyams_content.shared.common.interfaces import IWfSharedContent |
26 from pyams_content.shared.common.interfaces import IWfSharedContent |
27 from pyams_content.shared.form.interfaces import IFormsManagerFactory |
27 from pyams_content.shared.form.interfaces import IFormsManagerFactory |
143 'include_parents': True, |
143 'include_parents': True, |
144 'include_synonyms': False}), |
144 'include_synonyms': False}), |
145 ('themes_all', ThesaurusTermsListFieldIndex, {'interface': IThemesInfo, |
145 ('themes_all', ThesaurusTermsListFieldIndex, {'interface': IThemesInfo, |
146 'discriminator': 'themes', |
146 'discriminator': 'themes', |
147 'include_parents': True, |
147 'include_parents': True, |
148 'include_synonyms': True}) |
148 'include_synonyms': True}), |
|
149 ('collections', ThesaurusTermsListFieldIndex, {'interface': ICollectionsInfo, |
|
150 'discriminator': 'collections', |
|
151 'include_parents': False, |
|
152 'include_synonyms': False}) |
149 ] |
153 ] |
150 |
154 |
151 |
155 |
152 # |
156 # |
153 # Checker for required shared tables |
157 # Checker for required shared tables |