Version 0.1.18 0.1.18
authorThierry Florac <thierry.florac@onf.fr>
Fri, 28 Dec 2018 10:57:14 +0100
changeset 121 313dcdc38ffb
parent 120 4f9400267849
child 122 650c19fa0e5b
Version 0.1.18
buildout.cfg
docs/HISTORY.txt
setup.py
src/pyams_media/skin/resources/js/pyams_media.min.js
--- a/buildout.cfg	Thu Dec 20 10:34:32 2018 +0100
+++ b/buildout.cfg	Fri Dec 28 10:57:14 2018 +0100
@@ -74,4 +74,4 @@
 eggs = pyams_media [test]
 
 [versions]
-pyams_media = 0.1.17
+pyams_media = 0.1.18
--- a/docs/HISTORY.txt	Thu Dec 20 10:34:32 2018 +0100
+++ b/docs/HISTORY.txt	Fri Dec 28 10:57:14 2018 +0100
@@ -1,6 +1,10 @@
 History
 =======
 
+0.1.18
+------
+ - added "media" TALES extension, to handle images and videos rendering
+
 0.1.17
 ------
  - check if port is available before starting medias converter process to avoid zombies
--- a/setup.py	Thu Dec 20 10:34:32 2018 +0100
+++ b/setup.py	Fri Dec 28 10:57:14 2018 +0100
@@ -22,7 +22,7 @@
 README = os.path.join(DOCS, 'README.txt')
 HISTORY = os.path.join(DOCS, 'HISTORY.txt')
 
-version = '0.1.17'
+version = '0.1.18'
 long_description = open(README).read() + '\n\n' + open(HISTORY).read()
 
 tests_require = []
--- a/src/pyams_media/skin/resources/js/pyams_media.min.js	Thu Dec 20 10:34:32 2018 +0100
+++ b/src/pyams_media/skin/resources/js/pyams_media.min.js	Fri Dec 28 10:57:14 2018 +0100
@@ -1,1 +1,1 @@
-!function(a,e){"use strict";var l=e.MyAMS,i={initPlayer:function(e){l.ajax.check(a.fn.flowplayer,"/--static--/pyams_media/flowplayer/flowplayer"+l.devext+".js",function(r){r&&(l.dialog&&l.dialog.registerShownCallback(i.initPlayerDialog,o),l.dialog&&l.dialog.registerHideCallback(i.shutdownPlayerDialog,o));var o=a(e),t=o.flowplayer(),n=o.data("ams-flowplayer-events");if(n)for(var y in n)n.hasOwnProperty(y)&&t.on(y,MyAMS.getFunctionByName(n[y]))})},initPlayerDialog:function(){var e=a(this);a(".modal-viewport",e).removeAttr("style").removeClass("modal-viewport")},shutdownPlayerDialog:function(){var e=a(this),l=a(".flowplayer",e).data("flowplayer");l&&l.shutdown()},getPlayerTime:function(){var e=a(this);e.hasClass("flowplayer")||(e=a(".flowplayer",e));var l=e.data("flowplayer");if(l){var i=l.video;if(!i.time&&l.conf.flowplayer&&(i=l.conf.flowplayer.video),i&&i.time){var r=i.time,o=e.parents("form");a('INPUT[name="thumbnail_form.widgets.time"]',o).val(r)}}},pausePlayer:function(){var e=a(this),l=a(".flowplayer",e).data("flowplayer");return l&&l.playing&&l.pause(),i.getPlayerTime.call(e),{}}};e.PyAMS_media=i}(jQuery,this);
+!function(t,a){"use strict";var n=a.MyAMS,y={initPlayer:function(o){n.ajax.check(t.fn.flowplayer,"/--static--/pyams_media/flowplayer/flowplayer"+n.devext+".js",function(a){a&&(n.dialog&&n.dialog.registerShownCallback(y.initPlayerDialog,e),n.dialog&&n.dialog.registerHideCallback(y.shutdownPlayerDialog,e));var e=t(o),l=e.flowplayer(),i=e.data("ams-flowplayer-events");if(i)for(var r in i)i.hasOwnProperty(r)&&l.on(r,MyAMS.getFunctionByName(i[r]))})},initPlayerDialog:function(){var a=t(this);t(".modal-viewport",a).removeAttr("style").removeClass("modal-viewport")},shutdownPlayerDialog:function(){var a=t(this),e=t(".flowplayer",a).data("flowplayer");e&&e.shutdown()},getPlayerTime:function(){var a=t(this);a.hasClass("flowplayer")||(a=t(".flowplayer",a));var e=a.data("flowplayer");if(e){var l=e.video;if(!l.time&&e.conf.flowplayer&&(l=e.conf.flowplayer.video),l&&l.time){var i=l.time,r=a.parents("form");t('INPUT[name="thumbnail_form.widgets.time"]',r).val(i)}}},pausePlayer:function(){var a=t(this),e=t(".flowplayer",a).data("flowplayer");return e&&e.playing&&e.pause(),y.getPlayerTime.call(a),{}}};a.PyAMS_media=y}(jQuery,this);