src/pyams_content/component/paragraph/zmi/html.py
changeset 395 2a39b333a585
parent 355 5dce53509832
child 396 a6c3d1974420
--- a/src/pyams_content/component/paragraph/zmi/html.py	Sun Feb 11 12:11:05 2018 +0100
+++ b/src/pyams_content/component/paragraph/zmi/html.py	Thu Feb 15 15:08:29 2018 +0100
@@ -18,7 +18,7 @@
 # import interfaces
 from pyams_content.component.association.interfaces import IAssociationTarget
 from pyams_content.component.association.zmi.interfaces import IAssociationsParentForm
-from pyams_content.component.illustration.interfaces import IIllustration, IIllustrationRenderer
+from pyams_content.component.illustration.interfaces import IIllustration
 from pyams_content.component.paragraph.interfaces import IParagraphContainerTarget, IParagraphContainer, \
     IParagraphSummary
 from pyams_content.component.paragraph.interfaces.html import IHTMLParagraph, IRawParagraph
@@ -354,9 +354,7 @@
         self.illustration = IIllustration(self.context)
         if self.illustration.data:
             registry = get_current_registry()
-            renderer = self.illustration_renderer = registry.queryMultiAdapter((self.illustration, self.request),
-                                                                               IIllustrationRenderer,
-                                                                               name=self.illustration.renderer)
+            renderer = self.illustration_renderer = self.illustration.get_renderer()
             if renderer is not None:
                 renderer.update()