src/pyams_content/generations/__init__.py
changeset 610 0e082a47ccd3
parent 603 eadaa6149824
child 611 a41421d75755
equal deleted inserted replaced
609:375ab52043d6 610:0e082a47ccd3
     7 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
     7 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
     8 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
     8 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
     9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
     9 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
    10 # FOR A PARTICULAR PURPOSE.
    10 # FOR A PARTICULAR PURPOSE.
    11 #
    11 #
       
    12 from pyams_content.component.theme import IThemesInfo
       
    13 from pyams_thesaurus.index import ThesaurusTermsListFieldIndex
    12 
    14 
    13 __docformat__ = 'restructuredtext'
    15 __docformat__ = 'restructuredtext'
    14 
    16 
    15 
    17 
    16 # import standard library
    18 # import standard library
   109     ('expiration_date', DatetimeIndexWithInterface, {'interface': IWorkflowPublicationInfo,
   111     ('expiration_date', DatetimeIndexWithInterface, {'interface': IWorkflowPublicationInfo,
   110                                                      'discriminator': 'publication_expiration_date',
   112                                                      'discriminator': 'publication_expiration_date',
   111                                                      'resolution': MINUTE_RESOLUTION}),
   113                                                      'resolution': MINUTE_RESOLUTION}),
   112     ('first_publication_date', DatetimeIndexWithInterface, {'interface': IWorkflowPublicationInfo,
   114     ('first_publication_date', DatetimeIndexWithInterface, {'interface': IWorkflowPublicationInfo,
   113                                                             'discriminator': 'first_publication_date',
   115                                                             'discriminator': 'first_publication_date',
   114                                                             'resolution': MINUTE_RESOLUTION})
   116                                                             'resolution': MINUTE_RESOLUTION}),
       
   117     ('themes', ThesaurusTermsListFieldIndex, {'interface': IThemesInfo,
       
   118                                               'discriminator': 'themes',
       
   119                                               'include_parents': False,
       
   120                                               'include_synonyms': False}),
       
   121     ('themes_tree', ThesaurusTermsListFieldIndex, {'interface': IThemesInfo,
       
   122                                                    'discriminator': 'themes',
       
   123                                                    'include_parents': True,
       
   124                                                    'include_synonyms': False}),
       
   125     ('themes_all', ThesaurusTermsListFieldIndex, {'interface': IThemesInfo,
       
   126                                                   'discriminator': 'themes',
       
   127                                                   'include_parents': True,
       
   128                                                   'include_synonyms': True})
   115 ]
   129 ]
   116 
   130 
   117 
   131 
   118 #
   132 #
   119 # Checker for required shared tables
   133 # Checker for required shared tables