fixdc: only change wluri if it's fixable
[redakcja.git] / apps / cover / urls.py
1 # -*- coding: utf-8 -*-
2 #
3 # This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
4 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 #
6 from django.conf.urls.defaults import patterns, url
7
8
9 urlpatterns = patterns('cover.views',
10     url(r'^preview/$', 'preview_from_xml', name='cover_preview'),
11     url(r'^preview/(?P<book>[^/]+)/$', 'preview', name='cover_preview'),
12     url(r'^preview/(?P<book>[^/]+)/(?P<chunk>[^/]+)/$',
13             'preview', name='cover_preview'),
14     url(r'^preview/(?P<book>[^/]+)/(?P<chunk>[^/]+)/(?P<rev>\d+)/$',
15             'preview', name='cover_preview'),
16
17     url(r'^image/$', 'image_list', name='cover_image_list'),
18     url(r'^image/(?P<pk>\d+)/?$', 'image', name='cover_image'),
19     url(r'^add_image/$', 'add_image', name='cover_add_image'),
20 )