Updated "media" TALES extension to correctly call updated "picture" extension
authorThierry Florac <tflorac@ulthar.net>
Fri, 18 Jan 2019 15:19:07 +0100
changeset 124 9855b3ca8577
parent 123 6c949ed8d549
child 125 5d99b01e2bf5
Updated "media" TALES extension to correctly call updated "picture" extension
src/pyams_media/skin/video.py
--- a/src/pyams_media/skin/video.py	Thu Jan 17 10:48:03 2019 +0100
+++ b/src/pyams_media/skin/video.py	Fri Jan 18 15:19:07 2019 +0100
@@ -58,7 +58,8 @@
     """
 
     def render(self, context=None, lg_thumb='lg', lg_width=12, md_thumb='md', md_width=12,
-               sm_thumb='sm', sm_width=12, xs_thumb='xs', xs_width=12, alt='', css_class=''):
+               sm_thumb='sm', sm_width=12, xs_thumb='xs', xs_width=12, def_thumb=None, def_width=None,
+               alt='', css_class=''):
         if context is None:
             context = self.context
         if not IFile.providedBy(context):
@@ -71,7 +72,9 @@
         else:
             extension = None
         if extension is not None:
-            return extension.render(context, lg_thumb, lg_width, md_thumb, md_width, sm_thumb, sm_width, xs_thumb,
-                                    xs_width, alt, css_class)
+            return extension.render(context, lg_thumb=lg_thumb, lg_width=lg_width,
+                                    md_thumb=md_thumb, md_width=md_width, sm_thumb=sm_thumb, sm_width=sm_width,
+                                    xs_thumb=xs_thumb, xs_width=xs_width, def_thumb=def_thumb, def_width=def_width,
+                                    alt=alt, css_class=css_class)
         else:
             return ''