src/pyams_content/generations/__init__.py
changeset 379 8f90682f0fce
parent 259 c09986c167bc
child 392 8fc847d83992
equal deleted inserted replaced
378:747671dffc66 379:8f90682f0fce
    16 # import standard library
    16 # import standard library
    17 
    17 
    18 # import interfaces
    18 # import interfaces
    19 from pyams_catalog.interfaces import MINUTE_RESOLUTION, DATE_RESOLUTION
    19 from pyams_catalog.interfaces import MINUTE_RESOLUTION, DATE_RESOLUTION
    20 from pyams_content.interfaces import IBaseContent
    20 from pyams_content.interfaces import IBaseContent
    21 from pyams_content.component.links.interfaces import IInternalLink, IInternalReferencesList
       
    22 from pyams_content.root.interfaces import ISiteRootToolsConfiguration
    21 from pyams_content.root.interfaces import ISiteRootToolsConfiguration
    23 from pyams_content.shared.common.interfaces import IWfSharedContent
    22 from pyams_content.shared.common.interfaces import IWfSharedContent
    24 from pyams_utils.interfaces.site import ISiteGenerations
    23 from pyams_utils.interfaces.site import ISiteGenerations
    25 from pyams_utils.interfaces.traversing import IPathElements
    24 from pyams_utils.interfaces.traversing import IPathElements
    26 from pyams_workflow.interfaces import IWorkflowState, IWorkflowPublicationInfo
    25 from pyams_workflow.interfaces import IWorkflowState, IWorkflowPublicationInfo
    92                     ('expiration_date', DatetimeIndexWithInterface, {'interface': IWorkflowPublicationInfo,
    91                     ('expiration_date', DatetimeIndexWithInterface, {'interface': IWorkflowPublicationInfo,
    93                                                                      'discriminator': 'publication_expiration_date',
    92                                                                      'discriminator': 'publication_expiration_date',
    94                                                                      'resolution': MINUTE_RESOLUTION}),
    93                                                                      'resolution': MINUTE_RESOLUTION}),
    95                     ('first_publication_date', DatetimeIndexWithInterface, {'interface': IWorkflowPublicationInfo,
    94                     ('first_publication_date', DatetimeIndexWithInterface, {'interface': IWorkflowPublicationInfo,
    96                                                                             'discriminator': 'first_publication_date',
    95                                                                             'discriminator': 'first_publication_date',
    97                                                                             'resolution': MINUTE_RESOLUTION}),
    96                                                                             'resolution': MINUTE_RESOLUTION})]
    98                     ('link_reference', FieldIndexWithInterface, {'interface': IInternalLink,
       
    99                                                                  'discriminator': 'reference'}),
       
   100                     ('link_references', KeywordIndexWithInterface, {'interface': IInternalReferencesList,
       
   101                                                                     'discriminator': 'references'})]
       
   102 
    97 
   103 
    98 
   104 def get_tools_manager(site, config, registry=None):
    99 def get_tools_manager(site, config, registry=None):
   105     """Check for shared tools manager"""
   100     """Check for shared tools manager"""
   106     if registry is None:
   101     if registry is None: