Renamed renderer variable
authorThierry Florac <thierry.florac@onf.fr>
Fri, 02 Mar 2018 15:02:52 +0100
changeset 431 a162e9f348f7
parent 430 3d44390d2ecd
child 432 a068d20dc9ae
Renamed renderer variable
src/pyams_content/component/paragraph/zmi/preview.py
--- a/src/pyams_content/component/paragraph/zmi/preview.py	Fri Mar 02 15:02:15 2018 +0100
+++ b/src/pyams_content/component/paragraph/zmi/preview.py	Fri Mar 02 15:02:52 2018 +0100
@@ -56,8 +56,8 @@
         return request
 
     def render_paragraph(self, paragraph, language=None):
-        renderer = self.request.registry.queryMultiAdapter((paragraph, self.render_request), IParagraphPreview)
-        if renderer is not None:
-            renderer.language = language
-            renderer.update()
-            return renderer.render()
+        preview = self.request.registry.queryMultiAdapter((paragraph, self.render_request), IParagraphPreview)
+        if preview is not None:
+            preview.language = language
+            preview.update()
+            return preview.render()