Changeset 227c2ca
- Timestamp:
- 06/22/11 19:02:21 (2 years ago)
- Branches:
- master, crem, crem2, dev, dev2, diadems, forma, generic, instru_search, lam, nlivemulti, production, release/1.4.4, security, social, storage, test
- Children:
- a11b4af
- Parents:
- 9dff2f9 (diff), 2845945 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - git-author:
- yomguy <yomguy@…> (06/22/11 19:02:21)
- git-committer:
- yomguy <yomguy@…> (06/22/11 19:02:21)
- Files:
-
- 6 added
- 14 edited
-
telemeta/htdocs/css/telemeta.css (modified) (1 diff)
-
telemeta/htdocs/js/locale.js (modified) (1 diff)
-
telemeta/locale/de/LC_MESSAGES/djangojs.mo (modified) (previous)
-
telemeta/locale/de/LC_MESSAGES/djangojs.po (modified) (2 diffs)
-
telemeta/locale/fr/LC_MESSAGES/djangojs.mo (modified) (previous)
-
telemeta/locale/fr/LC_MESSAGES/djangojs.po (modified) (2 diffs)
-
telemeta/templates/telemeta_default/base.html (modified) (2 diffs)
-
telemeta/templates/telemeta_default/collection_detail.html (modified) (2 diffs)
-
telemeta/templates/telemeta_default/home.html (modified) (1 diff)
-
telemeta/templates/telemeta_default/inc/collection_list.html (modified) (1 diff)
-
telemeta/templates/telemeta_default/mediaitem_detail.html (modified) (1 diff)
-
telemeta/urls.py (modified) (1 diff)
-
telemeta/web/base.py (modified) (1 diff)
-
.bzrignore (added)
-
telemeta/htdocs/timeside/js/controller.js (added)
-
telemeta/htdocs/timeside/js/core.js (added)
-
telemeta/htdocs/timeside/js/markerlist.js (added)
-
telemeta/htdocs/timeside/js/soundprovider.js (added)
-
telemeta/htdocs/timeside/js/util.js (added)
-
telemeta/models/media.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
telemeta/htdocs/css/telemeta.css
rea7656e r2845945 467 467 #menu .black { border-bottom-color: #000000; } 468 468 #menu .red { border-bottom-color: #DD0000; } 469 #menu . indogo { border-bottom-color: #4B0082; }469 #menu .violet { border-bottom-color: #A00020; } 470 470 471 471 * html #menu :link, * html #menu :visited { background-position: 1px 0 } -
telemeta/htdocs/js/locale.js
r65fa35a r40265bd 10 10 'author' : gettext('author'), 11 11 'Paste HTML to embed player in website': gettext('Paste HTML to embed player in website'), 12 'delete the item permanently?' : gettext('delete the item permanently?'), 13 'delete the collection permanently?' : gettext('delete the collection permanently?') 12 14 }; 13 15 -
telemeta/locale/de/LC_MESSAGES/djangojs.po
r6ad1e97 r6a2413f 9 9 "Project-Id-Version: PACKAGE VERSION\n" 10 10 "Report-Msgid-Bugs-To: \n" 11 "POT-Creation-Date: 2011-06-22 1 7:56+0200\n"11 "POT-Creation-Date: 2011-06-22 18:37+0200\n" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 56 56 57 57 #: htdocs/js/locale.js:11 58 msgid "Paste HTML to embed in website"58 msgid "Paste HTML to embed player in website" 59 59 msgstr "" 60 61 #: htdocs/js/locale.js:12 62 msgid "delete the item permanently?" 63 msgstr "" 64 65 #: htdocs/js/locale.js:13 66 msgid "delete the collection permanently?" 67 msgstr "" -
telemeta/locale/fr/LC_MESSAGES/djangojs.po
r6ad1e97 r6a2413f 9 9 "Project-Id-Version: PACKAGE VERSION\n" 10 10 "Report-Msgid-Bugs-To: \n" 11 "POT-Creation-Date: 2011-06-22 1 7:56+0200\n"11 "POT-Creation-Date: 2011-06-22 18:37+0200\n" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: Guillaume Pellerin <yomguy@parisson.com>\n" … … 58 58 msgid "Paste HTML to embed player in website" 59 59 msgstr "Coller le code HTML pour inclure le lecteur dans un site" 60 61 #: htdocs/js/locale.js:12 62 msgid "delete the item permanently?" 63 msgstr "supprimer l'item définitivement ?" 64 65 #: htdocs/js/locale.js:13 66 msgid "delete the collection permanently?" 67 msgstr "supprimer la collection définitivement ?" -
telemeta/templates/telemeta_default/base.html
rea7656e r2845945 88 88 {% endif %} 89 89 {% if user.is_staff or user.is_superuser %} 90 <a href="{% url telemeta-admin %}" class=" black">{% trans "Admin" %}</a>90 <a href="{% url telemeta-admin %}" class="violet">{% trans "Admin" %}</a> 91 91 {% endif %} 92 92 … … 103 103 {% block content %}{% endblock %} 104 104 <div class="nett"></div> 105 {% block deleteitem %}{% endblock %} 105 106 </div> 106 107 -
telemeta/templates/telemeta_default/collection_detail.html
rb21dbf0 r6082da9 30 30 31 31 {% endif %} 32 // var setupPlaylist = function(){ 33 // {% if user.is_authenticated %} 34 // var p = playlistUtils; 35 // {% for playlist in playlists %} 36 // p.addPlaylist('{{ playlist.playlist.title }}','{{playlist.playlist.public_id}}'); 37 // {% endfor %} 38 // 39 // {% endif %} 40 // {% if collection %} 41 // var anchor = jQuery('#_add_to_playlist'); 42 // if(anchor.length){ 43 // anchor.click(function(){ 44 // p.showAddResourceToPlaylist(anchor,'collection','{{collection.id}}',gettrans('collection added to the selected playlist'));return false; 45 // }); 46 // } 47 // {% endif %} 48 // }; 49 // jQuery(document).ready(function(){ 50 // setupPlaylist(); 51 // }); 32 52 33 </script> 53 34 {% endblock %} … … 215 196 {% endwith %} 216 197 --> 217 </div> 198 218 199 {% endblock infos %} 219 200 </div> 220 201 {% endblock %} 202 203 {% block deleteitem %} 204 {% if user.is_authenticated and perms.telemeta.delete_mediacollection %} 205 <a href="#" onclick="if(confirm(gettrans('delete the collection permanently?'))){window.location.href='{% url telemeta-collection-delete collection.public_id %}';};return false;" 206 class="component_icon button icon_delete" style="float:right;margin-top:0.5em;margin-bottom:1em">{% trans "Delete" %}</a> 207 {% endif %} 208 209 {% endblock %} 210 221 211 {% else %} 222 212 <p>No such collection</p> -
telemeta/templates/telemeta_default/home.html
r8a47ef5 r2845945 48 48 <th>{% trans "Code" %}</th> 49 49 <th>{% trans "Recordist" %}</th> 50 <th>{% trans " Year of recording" %}</th>50 <th>{% trans "Recording period" %}</th> 51 51 <th>{% trans "Sound" %}</th> 52 52 <th>{% trans "Action" %}</th> -
telemeta/templates/telemeta_default/inc/collection_list.html
re7b24f5 r2845945 15 15 <th>{% field_label "MediaCollection" "creator" %}</th> 16 16 <th>{% trans "Recordist" %}</th> 17 <th>{% trans " Year of recording" %}</th>17 <th>{% trans "Recording period" %}</th> 18 18 <th>{% trans "Sound" %}</th> 19 19 </tr> -
telemeta/templates/telemeta_default/mediaitem_detail.html
r59a51a3 r8f0f9d0 263 263 {% endblock infos %} 264 264 </div> <!-- with-rightcol --> 265 266 {% endblock %} 267 268 {% block deleteitem %} 265 269 {% if user.is_authenticated and perms.telemeta.delete_mediaitem %} 266 <div style="float: right;"> 267 <a href="#" onclick="if(confirm(gettrans('delete the item permanently?'))){window.location.href='{% url telemeta-item-delete item.public_id %}';};return false;" class="component_icon button icon_delete">{% trans "Delete" %}</a> 268 </div> 270 <a href="#" onclick="if(confirm(gettrans('delete the item permanently?'))){window.location.href='{% url telemeta-item-delete item.public_id %}';};return false;" 271 class="component_icon button icon_delete" style="float:right;margin-top:0.5em;margin-bottom:1em">{% trans "Delete" %}</a> 269 272 {% endif %} 270 273 {% endblock %} 274 271 275 {% else %} 272 276 <p>No such item</p> -
telemeta/urls.py
rea7656e r6a2413f 142 142 url(r'^collections/(?P<public_id>[A-Za-z0-9._-]+)/copy/$', collection_view.collection_copy, 143 143 dict(template='telemeta/collection_edit.html'), name="telemeta-collection-copy"), 144 url(r'^collection /add/$', collection_view.collection_add,144 url(r'^collections/add/$', collection_view.collection_add, 145 145 dict(template='telemeta/collection_add.html'), name="telemeta-collection-add"), 146 url(r'^collection /(?P<public_id>[A-Za-z0-9._-]+)/add_item/$', item_view.item_add,146 url(r'^collections/(?P<public_id>[A-Za-z0-9._-]+)/add_item/$', item_view.item_add, 147 147 dict(template='telemeta/mediaitem_add.html'), name="telemeta-collection-additem"), 148 148 url(r'^collections/(?P<public_id>[A-Za-z0-9._-]+)/delete/$', collection_view.collection_delete, name="telemeta-collection-delete"), 149 149 150 # search 150 151 url(r'^search/$', general_view.search, name="telemeta-search"), -
telemeta/web/base.py
rea7656e r9b202e11 398 398 return HttpResponse(template.render(context), mimetype=mimetype) 399 399 400 @method_decorator(permission_required('telemeta.delete_mediacollection')) 401 def collection_delete(self, request, public_id): 402 """Delete a given collection""" 403 collection = MediaCollection.objects.get(public_id=public_id) 404 collection.delete() 405 return HttpResponseRedirect('/collections/') 406 400 407 401 408 class ItemView(object): -
telemeta/models/media.py
rd490e6f r9dff2f9 74 74 75 75 76 collection_published_code_regex = ' [A-Za-z0-9._-]*'77 collection_unpublished_code_regex = ' [A-Za-z0-9._-]*'76 collection_published_code_regex = 'CNRSMH_E_[0-9]{4}(?:_[0-9]{3}){2}' 77 collection_unpublished_code_regex = 'CNRSMH_I_[0-9]{4}_[0-9]{3}' 78 78 collection_code_regex = '(?:%s|%s)' % (collection_published_code_regex, 79 79 collection_unpublished_code_regex) … … 218 218 219 219 220 item_published_code_regex = '[A-Za-z0-9._-]*'221 item_unpublished_code_regex = '[A-Za-z0-9._-]*'220 item_published_code_regex = collection_published_code_regex + '(?:_[0-9]{2,3}){1,2}' 221 item_unpublished_code_regex = collection_unpublished_code_regex + '_[0-9]{2,3}(?:_[0-9]{2,3}){0,2}' 222 222 item_code_regex = '(?:%s|%s)' % (item_published_code_regex, item_unpublished_code_regex) 223 223
Note: See TracChangeset
for help on using the changeset viewer.
