Added request argument
authorThierry Florac <thierry.florac@onf.fr>
Thu, 06 Sep 2018 13:58:58 +0200
changeset 129 235aa2b9b500
parent 128 102189883637
child 130 f4f8dccfee8b
Added request argument
src/pyams_default_theme/component/paragraph/html.py
--- a/src/pyams_default_theme/component/paragraph/html.py	Wed Sep 05 09:46:52 2018 +0200
+++ b/src/pyams_default_theme/component/paragraph/html.py	Thu Sep 06 13:58:58 2018 +0200
@@ -19,15 +19,13 @@
 from pyams_content.component.illustration import IIllustration
 from pyams_content.component.paragraph.interfaces.html import IRawParagraph, IHTMLParagraph
 from pyams_content.features.renderer.interfaces import IContentRenderer
-from pyams_skin.layer import IPyAMSLayer
-
 # import packages
 from pyams_content.features.renderer.skin import BaseContentRenderer
+from pyams_default_theme import _
+from pyams_skin.layer import IPyAMSLayer
 from pyams_template.template import template_config
 from pyams_utils.adapter import adapter_config
 
-from pyams_default_theme import _
-
 
 #
 # Raw paragraph default renderer
@@ -63,7 +61,7 @@
         super(HTMLParagraphDefaultRenderer, self).update()
         self.illustration = IIllustration(self.context)
         if self.illustration.data:
-            renderer = self.illustration_renderer = self.illustration.get_renderer()
+            renderer = self.illustration_renderer = self.illustration.get_renderer(self.request)
             if renderer is not None:
                 renderer.update()