Mercurial > sat_legacy_website
comparison sat_website/screenshots.py @ 58:746e53efc188
allow large media files (screencasts) to be stored on an external server
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 14 May 2015 23:37:56 +0200 |
parents | 3e460ca969d2 |
children | 6652924221ba |
comparison
equal
deleted
inserted
replaced
57:bfa8009f0769 | 58:746e53efc188 |
---|---|
18 | 18 |
19 You should have received a copy of the GNU Affero General Public License | 19 You should have received a copy of the GNU Affero General Public License |
20 along with Foobar. If not, see <http://www.gnu.org/licenses/>. | 20 along with Foobar. If not, see <http://www.gnu.org/licenses/>. |
21 """ | 21 """ |
22 from django.utils.translation import ugettext_lazy as _ | 22 from django.utils.translation import ugettext_lazy as _ |
23 from django.conf import settings | |
23 from collections import namedtuple | 24 from collections import namedtuple |
25 import os.path | |
24 | 26 |
25 ImageDesc = namedtuple("ImageDesc", "path description data") | 27 ImageDesc = namedtuple("ImageDesc", "path description data") |
26 VideoDesc = namedtuple("VideoDesc", "path description poster data") | 28 VideoDesc = namedtuple("VideoDesc", "path description poster data") |
29 | |
30 media_path = os.path.normpath(settings.MEDIA_EXTERNAL_URL) | |
31 screencasts = os.path.join(media_path, "screencasts") + "/" | |
32 | |
27 | 33 |
28 #list the pictures | 34 #list the pictures |
29 | 35 |
30 screenshots = [ | 36 screenshots = [ |
31 ImageDesc("images/screenshots/0.5/overview_libervia.png", _(u"Overview"), | 37 ImageDesc("images/screenshots/0.5/overview_libervia.png", _(u"Overview"), |
32 {_(u"frontend"): "libervia", _(u"version"): "0.5", _(u"year"): "2014"}), | 38 {_(u"frontend"): "libervia", _(u"version"): "0.5", _(u"year"): "2014"}), |
33 ImageDesc("images/screenshots/0.5/http_unsecure_warning.png", _(u"Optional security check"), | 39 ImageDesc("images/screenshots/0.5/http_unsecure_warning.png", _(u"Optional security check"), |
34 {_(u"frontend"): "libervia", _(u"version"): "0.5", _(u"year"): "2014"}), | 40 {_(u"frontend"): "libervia", _(u"version"): "0.5", _(u"year"): "2014"}), |
35 ImageDesc("images/screenshots/0.4/sat_wysiwyg.png", _(u"Rich text editor"), | 41 ImageDesc("images/screenshots/0.4/sat_wysiwyg.png", _(u"Rich text editor"), |
36 {_(u"frontend"): "libervia", _(u"version"): "0.4", _(u"year"): "2014"}), | 42 {_(u"frontend"): "libervia", _(u"version"): "0.4", _(u"year"): "2014"}), |
37 VideoDesc("videos/screencasts/présentation_SàT_5_radio_collective.webm", _(u"Demo of the new Libervia UI, and of the collective radio feature"), "videos/screencasts/posters/radiocol.jpg", | 43 VideoDesc(screencasts + "présentation_SàT_5_radio_collective.webm", _(u"Demo of the new Libervia UI, and of the collective radio feature"), screencasts + "posters/radiocol.jpg", |
38 {_(u"frontend"): "libervia", _(u"version"): "0.3D", _(u"year"): "2012", _(u"language"): "fr"}), | 44 {_(u"frontend"): "libervia", _(u"version"): "0.3D", _(u"year"): "2012", _(u"language"): "fr"}), |
39 ImageDesc("images/screenshots/libervia/libervia_login.png", _(u"Libervia's login page"), | 45 ImageDesc("images/screenshots/libervia/libervia_login.png", _(u"Libervia's login page"), |
40 {_(u"frontend"): "libervia", _(u"version"): "0.3D", _(u"year"): "2011"}), | 46 {_(u"frontend"): "libervia", _(u"version"): "0.3D", _(u"year"): "2011"}), |
41 ImageDesc("images/screenshots/libervia/libervia_discussions.png", _(u"Libervia's main view"), | 47 ImageDesc("images/screenshots/libervia/libervia_discussions.png", _(u"Libervia's main view"), |
42 {_(u"frontend"): "libervia", _(u"version"): "0.3D", _(u"year"): "2011"}), | 48 {_(u"frontend"): "libervia", _(u"version"): "0.3D", _(u"year"): "2011"}), |
43 ImageDesc("images/screenshots/wix/wix_tarot.png", _(u"Wix showing a french Tarot play"), | 49 ImageDesc("images/screenshots/wix/wix_tarot.png", _(u"Wix showing a french Tarot play"), |
44 {_(u"frontend"): "wix", _(u"version"): "0.2", _(u"year"): "2011"}), | 50 {_(u"frontend"): "wix", _(u"version"): "0.2", _(u"year"): "2011"}), |
45 VideoDesc("videos/screencasts/présentation_SàT_3.webm", _(u"This video focuses on Libervia. The UI is really outdated, but we can see some features"), "videos/screencasts/posters/présentation_SàT_3.jpg", | 51 VideoDesc(screencasts + "présentation_SàT_3.webm", _(u"This video focuses on Libervia. The UI is really outdated, but we can see some features"), screencasts + "posters/présentation_SàT_3.jpg", |
46 {_(u"frontend"): "libervia", _(u"version"): "0.2", _(u"year"): "2011", _(u"language"): "fr"}), | 52 {_(u"frontend"): "libervia", _(u"version"): "0.2", _(u"year"): "2011", _(u"language"): "fr"}), |
47 ] | 53 ] |
48 | 54 |
49 screenshots_tech = [ | 55 screenshots_tech = [ |
50 ImageDesc("images/screenshots/0.5/adhoc_administration.png", _(u"Server administration from the web frontend Libervia."), | 56 ImageDesc("images/screenshots/0.5/adhoc_administration.png", _(u"Server administration from the web frontend Libervia."), |
51 {_(u"frontend"): "libervia", _(u"version"): "0.5", _(u"year"): "2014"}), | 57 {_(u"frontend"): "libervia", _(u"version"): "0.5", _(u"year"): "2014"}), |
52 VideoDesc("videos/screencasts/présentation_SàT_7_télécommande_universelle.webm", _(u"Use ad-hoc commands to control a VLC player from Libervia"), "videos/screencasts/posters/présentation_SàT_7_télécommande_universelle.png", | 58 VideoDesc(screencasts + "présentation_SàT_7_télécommande_universelle.webm", _(u"Use ad-hoc commands to control a VLC player from Libervia"), screencasts + "posters/présentation_SàT_7_télécommande_universelle.png", |
53 {_(u"version"): "0.4", _(u"year"): "2014", _(u"language"): "fr"}), | 59 {_(u"version"): "0.4", _(u"year"): "2014", _(u"language"): "fr"}), |
54 VideoDesc("videos/screencasts/présentation_SàT_6_export_commande.webm", _(u"Exporting a command: an FTP client is exported to a Gajim contact"), "videos/screencasts/posters/présentation_SàT_6_export_commande.jpg", | 60 VideoDesc(screencasts + "présentation_SàT_6_export_commande.webm", _(u"Exporting a command: an FTP client is exported to a Gajim contact"), screencasts + "posters/présentation_SàT_6_export_commande.jpg", |
55 {_(u"version"): "0.4D", _(u"year"): "2013", _(u"language"): "fr"}), | 61 {_(u"version"): "0.4D", _(u"year"): "2013", _(u"language"): "fr"}), |
56 VideoDesc("videos/screencasts/présentation_SàT_4_copie_et_pipe.webm", _(u"How to copy and pipe streams over XMPP"), "videos/screencasts/posters/présentation_SàT_4.jpg", | 62 VideoDesc(screencasts + "présentation_SàT_4_copie_et_pipe.webm", _(u"How to copy and pipe streams over XMPP"), screencasts + "posters/présentation_SàT_4.jpg", |
57 {_(u"version"): "0.3D", _(u"year"): "2011", _(u"language"): "fr"}), | 63 {_(u"version"): "0.3D", _(u"year"): "2011", _(u"language"): "fr"}), |
58 ImageDesc("images/screenshots/jp/jp.png", _(u"Cowsay sent in conversation through jp"), | 64 ImageDesc("images/screenshots/jp/jp.png", _(u"Cowsay sent in conversation through jp"), |
59 {_(u"version"): "0.2", _(u"year"): "2011"}), | 65 {_(u"version"): "0.2", _(u"year"): "2011"}), |
60 ImageDesc("images/screenshots/primitivus/primitivus_tarot.png", _(u"Primitivus showing a french Tarot play"), | 66 ImageDesc("images/screenshots/primitivus/primitivus_tarot.png", _(u"Primitivus showing a french Tarot play"), |
61 {_(u"frontend"): "primitivus", _(u"version"): "0.2", _(u"year"): "2011"}), | 67 {_(u"frontend"): "primitivus", _(u"version"): "0.2", _(u"year"): "2011"}), |
62 VideoDesc("videos/screencasts/présentation_SàT_2.webm", _(u"This video shows french Tarot game, and how to use Thunderbird with SàT"), "videos/screencasts/posters/présentation_SàT_2.jpg", | 68 VideoDesc(screencasts + "présentation_SàT_2.webm", _(u"This video shows french Tarot game, and how to use Thunderbird with SàT"), screencasts + "posters/présentation_SàT_2.jpg", |
63 {_(u"version"): "0.2", _(u"year"): "2011", _(u"language"): "fr"}), | 69 {_(u"version"): "0.2", _(u"year"): "2011", _(u"language"): "fr"}), |
64 VideoDesc("videos/screencasts/présentation_SàT.webm", _(u"The first video shows wix, primitivus and jp"), "videos/screencasts/posters/présentation_SàT.jpg", | 70 VideoDesc(screencasts + "présentation_SàT.webm", _(u"The first video shows wix, primitivus and jp"), screencasts + "posters/présentation_SàT.jpg", |
65 {_(u"version"): "0.2", _(u"year"): "2011", _(u"language"): "fr"}), | 71 {_(u"version"): "0.2", _(u"year"): "2011", _(u"language"): "fr"}), |
66 ] | 72 ] |
67 | 73 |
68 | 74 |
69 | 75 |