]> git.ozlabs.org Git - patchwork/blob - apps/patchwork/urls.py
Inital commit
[patchwork] / apps / patchwork / urls.py
1 # Patchwork - automated patch tracking system
2 # Copyright (C) 2008 Jeremy Kerr <jk@ozlabs.org>
3 #
4 # This file is part of the Patchwork package.
5 #
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.
10 #
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.
15 #
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
19
20 from django.conf.urls.defaults import *
21
22 urlpatterns = patterns('',
23     # Example:
24     (r'^$', 'patchwork.views.projects'),
25     (r'^project/(?P<project_id>[^/]+)/list/$', 'patchwork.views.patch.list'),
26     (r'^project/(?P<project_id>[^/]+)/$', 'patchwork.views.project'),
27
28     # patch views
29     (r'^patch/(?P<patch_id>\d+)/$', 'patchwork.views.patch.patch'),
30     (r'^patch/(?P<patch_id>\d+)/raw/$', 'patchwork.views.patch.content'),
31     (r'^patch/(?P<patch_id>\d+)/mbox/$', 'patchwork.views.patch.mbox'),
32
33     # registration process
34     (r'^register/$', 'patchwork.views.user.register'),
35     (r'^register/confirm/(?P<key>[^/]+)/$',
36         'patchwork.views.user.register_confirm'),
37
38     (r'^login/$', 'patchwork.views.user.login'),
39     (r'^logout/$', 'patchwork.views.user.logout'),
40
41     # logged-in user stuff
42     (r'^user/$', 'patchwork.views.user.profile'),
43     (r'^user/todo/$', 'patchwork.views.user.todo_lists'),
44     (r'^user/todo/(?P<project_id>[^/]+)/$', 'patchwork.views.user.todo_list'),
45
46     (r'^user/bundle/(?P<bundle_id>[^/]+)/$',
47         'patchwork.views.bundle.bundle'),
48     (r'^user/bundle/(?P<bundle_id>[^/]+)/mbox/$',
49         'patchwork.views.bundle.mbox'),
50
51     (r'^user/link/$', 'patchwork.views.user.link'),
52     (r'^user/link/(?P<key>[^/]+)/$', 'patchwork.views.user.link_confirm'),
53     (r'^user/unlink/(?P<person_id>[^/]+)/$', 'patchwork.views.user.unlink'),
54
55     # public view for bundles
56     (r'^bundle/(?P<username>[^/]*)/(?P<bundlename>[^/]*)/$',
57                                 'patchwork.views.bundle.public'),
58
59     # submitter autocomplete
60     (r'^submitter/$', 'patchwork.views.submitter_complete'),
61 )