summaryrefslogtreecommitdiff
path: root/todolists/urls.py
blob: 81ac11f5221a8957bbb30d889663a68e74b06e35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from django.conf.urls import patterns
from django.contrib.auth.decorators import permission_required

from .views import DeleteTodolist

urlpatterns = patterns('todolists.views',
    (r'^$',                       'todolist_list'),
    (r'^(?P<list_id>\d+)/$',      'view'),
    (r'^(?P<list_id>\d+)/pkgbases/(?P<svn_root>[a-z]+)/$', 'list_pkgbases'),
    (r'^add/$',                   'add'),
    (r'^edit/(?P<list_id>\d+)/$', 'edit'),
    (r'^flag/(\d+)/(\d+)/$',      'flag'),
    (r'^delete/(?P<pk>\d+)/$',
        permission_required('todolists.delete_todolist')(DeleteTodolist.as_view())),
)

# vim: set ts=4 sw=4 et: