You will find only what you bring in.
[redakcja.git] / src / cover / urls.py
index 1146f62..cff09a6 100644 (file)
@@ -1,21 +1,20 @@
-# -*- coding: utf-8 -*-
-#
 # This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
 #
-from django.conf.urls import patterns, url
+from django.conf.urls import url
+from . import views
 
 
-urlpatterns = patterns('cover.views',
-    url(r'^preview/$', 'preview_from_xml', name='cover_preview'),
-    url(r'^preview/(?P<book>[^/]+)/$', 'preview', name='cover_preview'),
+urlpatterns = [
+    url(r'^preview/$', views.preview_from_xml, name='cover_preview'),
+    url(r'^preview/(?P<book>[^/]+)/$', views.preview, name='cover_preview'),
     url(r'^preview/(?P<book>[^/]+)/(?P<chunk>[^/]+)/$',
-            'preview', name='cover_preview'),
+            views.preview, name='cover_preview'),
     url(r'^preview/(?P<book>[^/]+)/(?P<chunk>[^/]+)/(?P<rev>\d+)/$',
-            'preview', name='cover_preview'),
+            views.preview, name='cover_preview'),
 
-    url(r'^image/$', 'image_list', name='cover_image_list'),
-    url(r'^image/(?P<pk>\d+)/?$', 'image', name='cover_image'),
-    url(r'^image/(?P<pk>\d+)/file/', 'image_file', name='cover_file'),
-    url(r'^add_image/$', 'add_image', name='cover_add_image'),
-)
+    url(r'^image/$', views.image_list, name='cover_image_list'),
+    url(r'^image/(?P<pk>\d+)/?$', views.image, name='cover_image'),
+    url(r'^image/(?P<pk>\d+)/file/', views.image_file, name='cover_file'),
+    url(r'^add_image/$', views.add_image, name='cover_add_image'),
+]