Update data setter
authorThierry Florac <tflorac@ulthar.net>
Wed, 07 Feb 2018 14:44:18 +0100
changeset 369 7dc78749caa2
parent 368 7cc109b71105
child 370 58d8e071b38c
Update data setter
src/pyams_content/component/illustration/__init__.py
--- a/src/pyams_content/component/illustration/__init__.py	Wed Feb 07 14:43:55 2018 +0100
+++ b/src/pyams_content/component/illustration/__init__.py	Wed Feb 07 14:44:18 2018 +0100
@@ -67,7 +67,7 @@
     @data.setter
     def data(self, value):
         self._data = value
-        for data in value.values():
+        for data in self._data.values():
             if IImage.providedBy(data):
                 alsoProvides(data, IResponsiveImage)