1 # -*- coding: utf-8 -*-
2 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 from django.conf.urls.defaults import *
8 urlpatterns = patterns('catalogue.views',
9 url(r'^$', 'main_page', name='main_page'),
10 url(r'^polki/(?P<shelf>[a-zA-Z0-9-]+)/formaty/$', 'shelf_book_formats', name='shelf_book_formats'),
11 url(r'^polki/(?P<shelf>[a-zA-Z0-9-]+)/(?P<book>[a-zA-Z0-9-0-]+)/usun$', 'remove_from_shelf', name='remove_from_shelf'),
12 url(r'^polki/$', 'user_shelves', name='user_shelves'),
13 url(r'^polki/(?P<slug>[a-zA-Z0-9-]+)/usun/$', 'delete_shelf', name='delete_shelf'),
14 url(r'^polki/(?P<slug>[a-zA-Z0-9-]+)\.zip$', 'download_shelf', name='download_shelf'),
15 url(r'^lektury/', 'book_list', name='book_list'),
16 url(r'^audiobooki/', 'audiobook_list', name='audiobook_list'),
17 url(r'^daisy/', 'daisy_list', name='daisy_list'),
18 url(r'^lektura/(?P<slug>[a-zA-Z0-9-]+)/polki/', 'book_sets', name='book_shelves'),
19 url(r'^polki/nowa/$', 'new_set', name='new_set'),
20 url(r'^tags/$', 'tags_starting_with', name='hint'),
21 url(r'^jtags/$', 'json_tags_starting_with', name='jhint'),
22 url(r'^szukaj/$', 'search', name='search'),
25 url(r'^zegar', 'clock', name='clock'),
27 # Public interface. Do not change this URLs.
28 url(r'^lektura/(?P<slug>[a-zA-Z0-9-]+)\.html$', 'book_text', name='book_text'),
29 url(r'^lektura/(?P<slug>[a-zA-Z0-9-]+)/$', 'book_detail', name='book_detail'),
30 url(r'^lektura/(?P<book_slug>[a-zA-Z0-9-]+)/motyw/(?P<theme_slug>[a-zA-Z0-9-]+)/$',
31 'book_fragments', name='book_fragments'),
32 url(r'^(?P<tags>[a-zA-Z0-9-/]*)/$', 'tagged_object_list', name='tagged_object_list'),