# HG changeset patch # User Thierry Florac # Date 1543329401 -3600 # Node ID f3b3d2beb266e10ad845f3729e8ac01b52d5ff90 # Parent 7f0cb6e407fc7f24d3684067e63ae6611de1a899 Refactored paragraph title interface diff -r 7f0cb6e407fc -r f3b3d2beb266 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: