src/pyams_content/shared/site/zmi/manager.py
changeset 280 a87f40e0f10c
parent 279 c31da1985a3b
child 294 8742c8ac126c
--- a/src/pyams_content/shared/site/zmi/manager.py	Wed Nov 15 17:25:47 2017 +0100
+++ b/src/pyams_content/shared/site/zmi/manager.py	Wed Nov 15 17:29:30 2017 +0100
@@ -9,8 +9,6 @@
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
 #
-from pyams_content.shared.common.interfaces.zmi import IDashboardSearchHeader
-from pyams_content.shared.common.zmi.dashboard import SharedToolDashboardView
 
 __docformat__ = 'restructuredtext'
 
@@ -36,7 +34,7 @@
 from pyams_pagelet.pagelet import pagelet_config
 from pyams_skin.table import DefaultElementEditorAdapter
 from pyams_skin.viewlet.toolbar import ToolbarMenuItem
-from pyams_utils.adapter import adapter_config, ContextRequestAdapter, ContextRequestViewAdapter
+from pyams_utils.adapter import adapter_config, ContextRequestAdapter
 from pyams_utils.registry import query_utility
 from pyams_utils.unicode import translate_string
 from pyams_utils.url import absolute_url
@@ -127,15 +125,3 @@
 
     view_name = 'admin'
     modal_target = False
-
-
-@adapter_config(context=(ISiteManager, IAdminLayer, SharedToolDashboardView), provides=IDashboardSearchHeader)
-class SiteManagerDashboardSearchHeaderAdapter(ContextRequestViewAdapter):
-    """Site manager dashboard search header adapter"""
-
-    @property
-    def title(self):
-        translate = self.request.localizer.translate
-        return translate(_("SEARCH - Between all contents published into « {site} »")).format(
-            site=II18n(self.context).query_attribute('title', request=self.request)
-        )