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