1 # Patchwork - automated patch tracking system
2 # Copyright (C) 2008 Jeremy Kerr <jk@ozlabs.org>
4 # This file is part of the Patchwork package.
6 # Patchwork is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # Patchwork is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with Patchwork; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 from django.conf.urls.defaults import *
21 from django.conf import settings
23 urlpatterns = patterns('',
25 (r'^$', 'patchwork.views.projects'),
26 (r'^project/(?P<project_id>[^/]+)/list/$', 'patchwork.views.patch.list'),
27 (r'^project/(?P<project_id>[^/]+)/$', 'patchwork.views.project.project'),
30 (r'^patch/(?P<patch_id>\d+)/$', 'patchwork.views.patch.patch'),
31 (r'^patch/(?P<patch_id>\d+)/raw/$', 'patchwork.views.patch.content'),
32 (r'^patch/(?P<patch_id>\d+)/mbox/$', 'patchwork.views.patch.mbox'),
34 # logged-in user stuff
35 (r'^user/$', 'patchwork.views.user.profile'),
36 (r'^user/todo/$', 'patchwork.views.user.todo_lists'),
37 (r'^user/todo/(?P<project_id>[^/]+)/$', 'patchwork.views.user.todo_list'),
40 'patchwork.views.bundle.bundles'),
41 (r'^user/bundle/(?P<bundle_id>[^/]+)/$',
42 'patchwork.views.bundle.bundle'),
43 (r'^user/bundle/(?P<bundle_id>[^/]+)/mbox/$',
44 'patchwork.views.bundle.mbox'),
46 (r'^user/link/$', 'patchwork.views.user.link'),
47 (r'^user/link/(?P<key>[^/]+)/$', 'patchwork.views.user.link_confirm'),
48 (r'^user/unlink/(?P<person_id>[^/]+)/$', 'patchwork.views.user.unlink'),
50 # public view for bundles
51 (r'^bundle/(?P<username>[^/]*)/(?P<bundlename>[^/]*)/$',
52 'patchwork.views.bundle.public'),
54 # submitter autocomplete
55 (r'^submitter/$', 'patchwork.views.submitter_complete'),
58 (r'^help/(?P<path>.*)$', 'patchwork.views.help'),
61 if settings.ENABLE_XMLRPC:
62 urlpatterns += patterns('',
63 (r'xmlrpc/$', 'patchwork.views.xmlrpc.xmlrpc'),
64 (r'^pwclient/$', 'patchwork.views.pwclient'),
65 (r'^project/(?P<project_id>[^/]+)/pwclientrc/$',
66 'patchwork.views.pwclientrc'),