Added request argument when rendering image
authorThierry Florac <thierry.florac@onf.fr>
Thu, 28 Jun 2018 10:37:30 +0200
changeset 775 d06ce6ec4b35
parent 774 b1c5dd46b90f
child 776 9cc7207c1399
Added request argument when rendering image
src/pyams_content/reference/pictograms/zmi/__init__.py
--- a/src/pyams_content/reference/pictograms/zmi/__init__.py	Thu Jun 28 10:33:32 2018 +0200
+++ b/src/pyams_content/reference/pictograms/zmi/__init__.py	Thu Jun 28 10:37:30 2018 +0200
@@ -139,7 +139,7 @@
     def getValue(self, obj):
         image = II18n(obj).query_attribute('image', request=self.request)
         if image:
-            return render_image(image, 32, 32, timestamp=True)
+            return render_image(image, 32, 32, self.request, timestamp=True)
         return '--'