2 from django.conf.urls.defaults import patterns, url
5 urlpatterns = patterns('cover.views',
6 url(r'^preview/$', 'preview_from_xml', name='cover_preview'),
7 url(r'^preview/(?P<book>[^/]+)/$', 'preview', name='cover_preview'),
8 url(r'^preview/(?P<book>[^/]+)/(?P<chunk>[^/]+)/$',
9 'preview', name='cover_preview'),
10 url(r'^preview/(?P<book>[^/]+)/(?P<chunk>[^/]+)/(?P<rev>\d+)/$',
11 'preview', name='cover_preview'),