wrong indent resulted in undefined variable
[redakcja.git] / apps / catalogue / urls.py
1 # -*- coding: utf-8
2 from django.conf.urls.defaults import *
3 from django.views.generic.simple import redirect_to
4
5
6 urlpatterns = patterns('catalogue.views',
7     url(r'^$', redirect_to, {'url': 'catalogue/'}),
8
9     url(r'^images/$', 'image_list', name='catalogue_image_list'),
10     url(r'^image/(?P<slug>[^/]+)/$', 'image', name="catalogue_image"),
11     url(r'^image/(?P<slug>[^/]+)/publish$', 'publish_image',
12             name="catalogue_publish_image"),
13
14     url(r'^catalogue/$', 'document_list', name='catalogue_document_list'),
15     url(r'^user/$', 'my', name='catalogue_user'),
16     url(r'^user/(?P<username>[^/]+)/$', 'user', name='catalogue_user'),
17     url(r'^users/$', 'users', name='catalogue_users'),
18     url(r'^activity/$', 'activity', name='catalogue_activity'),
19     url(r'^activity/(?P<isodate>\d{4}-\d{2}-\d{2})/$', 
20         'activity', name='catalogue_activity'),
21
22     url(r'^upload/$',
23         'upload', name='catalogue_upload'),
24
25     url(r'^create/(?P<slug>[^/]*)/',
26         'create_missing', name='catalogue_create_missing'),
27     url(r'^create/',
28         'create_missing', name='catalogue_create_missing'),
29
30     url(r'^book/(?P<slug>[^/]+)/publish$', 'publish', name="catalogue_publish"),
31
32     url(r'^book/(?P<slug>[^/]+)/$', 'book', name="catalogue_book"),
33     url(r'^book/(?P<slug>[^/]+)/xml$', 'book_xml', name="catalogue_book_xml"),
34     url(r'^book/(?P<slug>[^/]+)/txt$', 'book_txt', name="catalogue_book_txt"),
35     url(r'^book/(?P<slug>[^/]+)/html$', 'book_html', name="catalogue_book_html"),
36     url(r'^book/(?P<slug>[^/]+)/epub$', 'book_epub', name="catalogue_book_epub"),
37     url(r'^book/(?P<slug>[^/]+)/pdf$', 'book_pdf', name="catalogue_book_pdf"),
38     url(r'^chunk_add/(?P<slug>[^/]+)/(?P<chunk>[^/]+)/$',
39         'chunk_add', name="catalogue_chunk_add"),
40     url(r'^chunk_edit/(?P<slug>[^/]+)/(?P<chunk>[^/]+)/$',
41         'chunk_edit', name="catalogue_chunk_edit"),
42     url(r'^book_append/(?P<slug>[^/]+)/$',
43         'book_append', name="catalogue_book_append"),
44
45 )