Formatting...
--- 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,