1 """Urls for the Zinnia authors"""
2 from django.conf.urls.defaults import url
3 from django.conf.urls.defaults import patterns
4
5 from zinnia.models import Author
6
7 author_conf = {'queryset': Author.published.all()}
8
9 urlpatterns = patterns('zinnia.views.authors',
10 url(r'^$', 'author_list',
11 author_conf, 'zinnia_author_list'),
12 url(r'^(?P<username>[.+-@\w]+)/$', 'author_detail',
13 name='zinnia_author_detail'),
14 url(r'^(?P<username>[.+-@\w]+)/page/(?P<page>\d+)/$',
15 'author_detail',
16 name='zinnia_author_detail_paginated'),
17 )
18