From 945d5c46cc8d8bf07f442b038cdfbec685f8c2b9 Mon Sep 17 00:00:00 2001 From: wwj718 Date: Mon, 12 Jan 2015 17:31:25 +0800 Subject: [PATCH 1/3] add requirement.txt --- requirements.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..d6e1198 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +-e . From 7ad40c5d54422befc3c2afbb3aa996934cbb307b Mon Sep 17 00:00:00 2001 From: wwj718 Date: Tue, 13 Jan 2015 11:59:28 +0800 Subject: [PATCH 2/3] add the method workbench_scenarios to work with xblock-sdk --- videojs/videojs.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/videojs/videojs.py b/videojs/videojs.py index bb98543..9bf5dee 100644 --- a/videojs/videojs.py +++ b/videojs/videojs.py @@ -1,3 +1,4 @@ +#coding=utf-8 """ videojsXBlock main Python class""" import pkg_resources @@ -139,3 +140,8 @@ def save_videojs(self, data, suffix=''): return { 'result': 'success', } + @staticmethod + def workbench_scenarios(): + return [ + ("videojs demo", "") # 命名很重要 否则不显示 + ] From 0a9c39c609080884c8a597764f31660242cfdbbe Mon Sep 17 00:00:00 2001 From: wwj718 Date: Tue, 13 Jan 2015 12:12:25 +0800 Subject: [PATCH 3/3] edit the comment --- videojs/videojs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/videojs/videojs.py b/videojs/videojs.py index 9bf5dee..2c61c9b 100644 --- a/videojs/videojs.py +++ b/videojs/videojs.py @@ -143,5 +143,5 @@ def save_videojs(self, data, suffix=''): @staticmethod def workbench_scenarios(): return [ - ("videojs demo", "") # 命名很重要 否则不显示 + ("videojs demo", "") #the name should be "" ]