Formatting...
authorThierry Florac <thierry.florac@onf.fr>
Wed, 11 Apr 2018 11:32:07 +0200
changeset 85 bd438ff8acb7
parent 84 671cbbaa79df
child 86 d3033257c8e5
Formatting...
src/pyams_media/zmi/video.py
--- a/src/pyams_media/zmi/video.py	Wed Mar 28 15:57:55 2018 +0200
+++ b/src/pyams_media/zmi/video.py	Wed Apr 11 11:32:07 2018 +0200
@@ -144,11 +144,15 @@
     def get_ajax_output(self, changes):
         translate = self.request.localizer.translate
         if changes:
-            return {'status': 'success',
-                    'message': translate(_("Thumbnail selected successfully."))}
+            return {
+                'status': 'success',
+                'message': translate(_("Thumbnail selected successfully."))
+            }
         else:
-            return {'status': 'info',
-                    'message': translate(_("An error occurred. No created thumbnail."))}
+            return {
+                'status': 'info',
+                'message': translate(_("An error occurred. No created thumbnail."))
+            }
 
 
 @viewlet_config(name='video-thumbnail-prefix', context=IVideo, layer=IAdminLayer, view=VideoThumbnailEditForm,