Updated creation form data extraction
authorThierry Florac <thierry.florac@onf.fr>
Wed, 07 Mar 2018 16:16:37 +0100
changeset 77 b6bf6c89e59c
parent 76 6fd737a311f0
child 78 b3656b8cbd7d
Updated creation form data extraction
src/pyams_media/zmi/video.py
--- a/src/pyams_media/zmi/video.py	Mon Mar 05 12:51:54 2018 +0100
+++ b/src/pyams_media/zmi/video.py	Wed Mar 07 16:16:37 2018 +0100
@@ -125,6 +125,7 @@
             self.actions['select'].addClass('btn-primary')
 
     def createAndAdd(self, data):
+        data = data.get(self, data)
         thumbnailer = IThumbnail(self.context, None)
         if thumbnailer is not None:
             size = thumbnailer.get_image_size()