1 from django.conf.urls import patterns, include, url
2 from django.views.generic import RedirectView
4 urlpatterns = patterns('',
5 url(r'^$', RedirectView.as_view(url='new/')),
7 url(r'^new/$', 'archive.views.list_new', name="list_new"),
8 url(r'^new/(.+)/$', 'archive.views.file_new', name="file_new"),
9 url(r'^move_to_archive/(.+)/$', 'archive.views.move_to_archive', name="move_to_archive"),
11 url(r'^unpublished/$', 'archive.views.list_unpublished', name="list_unpublished"),
12 url(r'^publishing/$', 'archive.views.list_publishing', name="list_publishing"),
13 url(r'^published/$', 'archive.views.list_published', name="list_published"),
14 url(r'^file/(\d+)/$', 'archive.views.file_managed', name="file"),
15 url(r'^publish/(\d+)/$', 'archive.views.publish', name="publish"),
16 url(r'^convert/(\d+)/$', 'archive.views.publish', {'publish': False}, name="convert"),
17 url(r'^download/(\d+)/$', 'archive.views.download', name="download"),
18 url(r'^download/(\d+)\.(mp3|ogg)$', 'archive.views.download', name="download"),
19 url(r'^cancel/(\d+)/$', 'archive.views.cancel_publishing', name="cancel_publishing"),
20 url(r'^remove_to_archive/(\d+)/$', 'archive.views.remove_to_archive', name="remove_to_archive"),
22 url(r'^unmanaged/$', 'archive.views.list_unmanaged', name="list_unmanaged"),
23 url(r'^unmanaged/(.+)/$', 'archive.views.file_unmanaged', name="file_unmanaged"),
24 url(r'^move_to_new/(.+)/$', 'archive.views.move_to_new', name="move_to_new"),