# HG changeset patch # User Thierry Florac # Date 1498556854 -7200 # Node ID 87e08c0f3e3c1c6f4047f3792b97ea712ab31b4b # Parent 740542deeb0453b0c8193833af9166dad173f617 Added indexes for workflow attributes diff -r 740542deeb04 -r 87e08c0f3e3c src/pyams_content/generations/__init__.py --- a/src/pyams_content/generations/__init__.py Tue Jun 27 11:46:27 2017 +0200 +++ b/src/pyams_content/generations/__init__.py Tue Jun 27 11:47:34 2017 +0200 @@ -18,12 +18,12 @@ # import interfaces from pyams_catalog.interfaces import DATE_RESOLUTION from pyams_content.interfaces import IBaseContent -from pyams_content.component.links.interfaces import IInternalLink +from pyams_content.component.links.interfaces import IInternalLink, IInternalReferencesList from pyams_content.root.interfaces import ISiteRootToolsConfiguration from pyams_content.shared.common.interfaces import IWfSharedContent from pyams_utils.interfaces.site import ISiteGenerations from pyams_utils.interfaces.traversing import IPathElements -from pyams_workflow.interfaces import IWorkflowState +from pyams_workflow.interfaces import IWorkflowState, IWorkflowPublicationInfo from zope.dublincore.interfaces import IZopeDublinCore from zope.site.interfaces import INewLocalSite @@ -75,8 +75,16 @@ ('modified_date', DatetimeIndexWithInterface, {'interface': IZopeDublinCore, 'discriminator': 'modified', 'resolution': DATE_RESOLUTION}), + ('publication_date', DatetimeIndexWithInterface, {'interface': IWorkflowPublicationInfo, + 'discriminator': 'publication_date', + 'resolution': DATE_RESOLUTION}), + ('first_publication_date', DatetimeIndexWithInterface, {'interface': IWorkflowPublicationInfo, + 'discriminator': 'first_publication_date', + 'resolution': DATE_RESOLUTION}), ('link_reference', FieldIndexWithInterface, {'interface': IInternalLink, - 'discriminator': 'reference'})] + 'discriminator': 'reference'}), + ('link_references', KeywordIndexWithInterface, {'interface': IInternalReferencesList, + 'discriminator': 'references'})] REQUIRED_TOOLS = [('views', ViewsManager),