src/pyams_content/generations/__init__.py
changeset 829 f933926ed0a1
parent 800 2b5460ecb254
child 835 746f1b2f277a
equal deleted inserted replaced
828:bf12603398b2 829:f933926ed0a1
    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