Changed column header
authorThierry Florac <thierry.florac@onf.fr>
Fri, 13 Oct 2017 08:28:10 +0200
changeset 211 2e085515bc4f
parent 210 890655d79cbd
child 212 696fc2a40371
Changed column header
src/pyams_content/component/links/zmi/reverse.py
--- a/src/pyams_content/component/links/zmi/reverse.py	Fri Oct 13 08:27:52 2017 +0200
+++ b/src/pyams_content/component/links/zmi/reverse.py	Fri Oct 13 08:28:10 2017 +0200
@@ -26,7 +26,7 @@
 from pyams_workflow.interfaces import IWorkflowVersions
 from pyams_zmi.interfaces.menu import IContentManagementMenu
 from pyams_zmi.layer import IAdminLayer
-from z3c.table.interfaces import IValues
+from z3c.table.interfaces import IValues, IColumn
 
 # import packages
 from hypatia.catalog import CatalogQuery
@@ -34,7 +34,7 @@
 from pyams_catalog.query import CatalogResultSet
 from pyams_pagelet.pagelet import pagelet_config
 from pyams_skin.container import ContainerView
-from pyams_skin.table import BaseTable
+from pyams_skin.table import BaseTable, NameColumn
 from pyams_skin.viewlet.menu import MenuItem
 from pyams_utils.adapter import adapter_config, ContextRequestViewAdapter
 from pyams_utils.list import unique
@@ -42,7 +42,7 @@
 from pyams_utils.traversing import get_parent
 from pyams_viewlet.viewlet import viewlet_config
 from pyams_zmi.view import AdminView
-from zope.interface import implementer
+from zope.interface import implementer, Interface
 
 from pyams_content import _
 
@@ -64,6 +64,13 @@
     title = _("Content's internal links")
 
 
+@adapter_config(name='name', context=(Interface, IPyAMSLayer, SequentialIdTargetReverseLinkTable), provides=IColumn)
+class ReverseLinkNameColumn(NameColumn):
+    """Reverse link name column"""
+
+    _header = _("Title")
+
+
 @adapter_config(context=(IWfSharedContent, IPyAMSLayer, SequentialIdTargetReverseLinkTable), provides=IValues)
 class SequentialIdTargetReverseLinkValues(ContextRequestViewAdapter):
     """Sequential ID target reverse links values"""