Refactored paragraph title interface
authorThierry Florac <thierry.florac@onf.fr>
Tue, 27 Nov 2018 15:36:41 +0100
changeset 1126 f3b3d2beb266
parent 1125 7f0cb6e407fc
child 1127 a76066afc55b
Refactored paragraph title interface
src/pyams_content/component/paragraph/zmi/__init__.py
--- a/src/pyams_content/component/paragraph/zmi/__init__.py	Tue Nov 27 15:35:58 2018 +0100
+++ b/src/pyams_content/component/paragraph/zmi/__init__.py	Tue Nov 27 15:36:41 2018 +0100
@@ -19,7 +19,8 @@
 from pyams_content.component.paragraph.interfaces import IBaseParagraph, IParagraphContainerTarget, IParagraphFactory, \
     IParagraphFactorySettings, IParagraphRenderer
 from pyams_content.component.paragraph.zmi.container import ParagraphContainerBaseTable, ParagraphContainerTable
-from pyams_content.component.paragraph.zmi.interfaces import IParagraphContainerView, IParagraphTitleValue
+from pyams_content.component.paragraph.zmi.interfaces import IParagraphContainerView
+from pyams_content.component.paragraph import IParagraphTitle
 from pyams_content.features.renderer.zmi import BaseRenderedContentRenderer
 from pyams_content.interfaces import MANAGE_TOOL_PERMISSION
 from pyams_content.shared.common.interfaces import IWfSharedContent
@@ -95,7 +96,7 @@
     """Get JSON response value for paragraph refresh event"""
     parent = get_parent(context, IParagraphContainerTarget)
     if parent is not None:
-        adapter = request.registry.queryMultiAdapter((context, request), IParagraphTitleValue)
+        adapter = request.registry.queryMultiAdapter((context, request), IParagraphTitle)
         if adapter is not None:
             title = adapter
         else: