Added request argument
authorThierry Florac <thierry.florac@onf.fr>
Thu, 06 Sep 2018 14:01:08 +0200
changeset 929 1440d627e103
parent 928 de7b111fee8a
child 930 814f7c5e04d1
Added request argument
src/pyams_content/features/renderer/zmi/__init__.py
--- a/src/pyams_content/features/renderer/zmi/__init__.py	Thu Sep 06 14:00:22 2018 +0200
+++ b/src/pyams_content/features/renderer/zmi/__init__.py	Thu Sep 06 14:01:08 2018 +0200
@@ -15,22 +15,21 @@
 
 # import standard library
 
-# import interfaces
-from pyams_content.features.renderer.interfaces import IRenderedContent, IContentRenderer, IRendererSettings
-from pyams_content.interfaces import MANAGE_CONTENT_PERMISSION
-from pyams_form.interfaces.form import IFormManager
-from pyams_skin.layer import IPyAMSLayer
-
-# import packages
-from pyams_form.form import ajax_config
-from pyams_pagelet.pagelet import pagelet_config
-from pyams_viewlet.viewlet import BaseContentProvider
-from pyams_zmi.form import AdminDialogEditForm
 from pyramid.decorator import reify
 from z3c.form import field
 from zope.interface import Interface
 
 from pyams_content import _
+# import interfaces
+from pyams_content.features.renderer.interfaces import IRenderedContent, IContentRenderer, IRendererSettings
+from pyams_content.interfaces import MANAGE_CONTENT_PERMISSION
+# import packages
+from pyams_form.form import ajax_config
+from pyams_form.interfaces.form import IFormManager
+from pyams_pagelet.pagelet import pagelet_config
+from pyams_skin.layer import IPyAMSLayer
+from pyams_viewlet.viewlet import BaseContentProvider
+from pyams_zmi.form import AdminDialogEditForm
 
 
 #
@@ -44,7 +43,7 @@
 
     def __init__(self, context, request):
         super(BaseRenderedContentRenderer, self).__init__(context, request)
-        self.renderer = self.context.get_renderer()
+        self.renderer = self.context.get_renderer(request)
 
     def update(self):
         renderer = self.renderer