Added marker interface on search result renderer
authorThierry Florac <tflorac@ulthar.net>
Thu, 14 Feb 2019 12:40:11 +0100
changeset 419 38df143ffb61
parent 418 ef8383d7b9a2
child 420 81157b27cd0f
Added marker interface on search result renderer
src/pyams_default_theme/features/search/portlet/__init__.py
--- a/src/pyams_default_theme/features/search/portlet/__init__.py	Wed Feb 13 17:04:57 2019 +0100
+++ b/src/pyams_default_theme/features/search/portlet/__init__.py	Thu Feb 14 12:40:11 2019 +0100
@@ -21,6 +21,7 @@
 from pyams_content.features.search import ISearchFolder
 from pyams_content.features.search.portlet import ISearchResultsPortletSettings
 from pyams_content.shared.common import IWfSharedContent
+from pyams_default_theme import _
 from pyams_default_theme.features.search.portlet.interfaces import ISearchResultRenderer, \
     ISearchResultsPortletDefaultRendererSettings
 from pyams_default_theme.interfaces import ISearchResultsView
@@ -35,8 +36,6 @@
 from pyams_utils.url import canonical_url, relative_url
 from pyams_viewlet.viewlet import ViewContentProvider, Viewlet, viewlet_config
 
-from pyams_default_theme import _
-
 
 #
 # Search folder custom head specificities renderer
@@ -95,6 +94,7 @@
 
 @adapter_config(context=(IWfSharedContent, IPyAMSUserLayer, ISearchResultsView), provides=ISearchResultRenderer)
 @template_config(template='templates/search-result.pt', layer=IPyAMSUserLayer)
+@implementer(ISearchResultsView)
 class WfSharedContentSearchResultRenderer(ViewContentProvider):
     """Shared content search result renderer"""