msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-06-22 17:56+0200\n"
+"POT-Creation-Date: 2011-06-22 18:34+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgstr ""
#: htdocs/js/locale.js:11
-msgid "Paste HTML to embed in website"
+msgid "Paste HTML to embed player in website"
+msgstr ""
+
+#: htdocs/js/locale.js:12
+msgid "delete the item permanently?"
msgstr ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-06-22 17:56+0200\n"
+"POT-Creation-Date: 2011-06-22 18:34+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Guillaume Pellerin <yomguy@parisson.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
#: htdocs/js/locale.js:11
msgid "Paste HTML to embed player in website"
msgstr "Coller le code HTML pour inclure le lecteur dans un site"
+
+#: htdocs/js/locale.js:12
+msgid "delete the item permanently?"
+msgstr "supprimer l'item définitivement ?"
dict(template='telemeta/collection_edit.html'), name="telemeta-collection-edit"),
url(r'^collections/(?P<public_id>[A-Za-z0-9._-]+)/copy/$', collection_view.collection_copy,
dict(template='telemeta/collection_edit.html'), name="telemeta-collection-copy"),
- url(r'^collection/add/$', collection_view.collection_add,
+ url(r'^collections/add/$', collection_view.collection_add,
dict(template='telemeta/collection_add.html'), name="telemeta-collection-add"),
- url(r'^collection/(?P<public_id>[A-Za-z0-9._-]+)/add_item/$', item_view.item_add,
+ url(r'^collections/(?P<public_id>[A-Za-z0-9._-]+)/add_item/$', item_view.item_add,
dict(template='telemeta/mediaitem_add.html'), name="telemeta-collection-additem"),
-
+ url(r'^collections/(?P<public_id>[A-Za-z0-9._-]+)/delete/$', collection_view.item_delete, name="telemeta-collection-delete"),
+
# search
url(r'^search/$', general_view.search, name="telemeta-search"),
url(r'^search/collections/$', general_view.search, {'type': 'collections'},
context = RequestContext(request, {'collection': collection, 'host': request.META['HTTP_HOST']})
return HttpResponse(template.render(context), mimetype=mimetype)
+ @method_decorator(permission_required('telemeta.delete_mediacollection'))
+ def collection_delete(self, request, public_id):
+ """Delete a given collection"""
+ collection = MediaCollection.objects.get(public_id=public_id)
+ collection.delete()
+ return HttpResponseRedirect('/collections/')
+
class ItemView(object):
"""Provide Collections web UI methods"""