diff options
Diffstat (limited to 'apps/patchwork/urls.py')
-rw-r--r-- | apps/patchwork/urls.py | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/apps/patchwork/urls.py b/apps/patchwork/urls.py new file mode 100644 index 0000000..4a7ccb1 --- /dev/null +++ b/apps/patchwork/urls.py @@ -0,0 +1,61 @@ +# Patchwork - automated patch tracking system +# Copyright (C) 2008 Jeremy Kerr <jk@ozlabs.org> +# +# This file is part of the Patchwork package. +# +# Patchwork is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# Patchwork is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Patchwork; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +from django.conf.urls.defaults import * + +urlpatterns = patterns('', + # Example: + (r'^$', 'patchwork.views.projects'), + (r'^project/(?P<project_id>[^/]+)/list/$', 'patchwork.views.patch.list'), + (r'^project/(?P<project_id>[^/]+)/$', 'patchwork.views.project'), + + # patch views + (r'^patch/(?P<patch_id>\d+)/$', 'patchwork.views.patch.patch'), + (r'^patch/(?P<patch_id>\d+)/raw/$', 'patchwork.views.patch.content'), + (r'^patch/(?P<patch_id>\d+)/mbox/$', 'patchwork.views.patch.mbox'), + + # registration process + (r'^register/$', 'patchwork.views.user.register'), + (r'^register/confirm/(?P<key>[^/]+)/$', + 'patchwork.views.user.register_confirm'), + + (r'^login/$', 'patchwork.views.user.login'), + (r'^logout/$', 'patchwork.views.user.logout'), + + # logged-in user stuff + (r'^user/$', 'patchwork.views.user.profile'), + (r'^user/todo/$', 'patchwork.views.user.todo_lists'), + (r'^user/todo/(?P<project_id>[^/]+)/$', 'patchwork.views.user.todo_list'), + + (r'^user/bundle/(?P<bundle_id>[^/]+)/$', + 'patchwork.views.bundle.bundle'), + (r'^user/bundle/(?P<bundle_id>[^/]+)/mbox/$', + 'patchwork.views.bundle.mbox'), + + (r'^user/link/$', 'patchwork.views.user.link'), + (r'^user/link/(?P<key>[^/]+)/$', 'patchwork.views.user.link_confirm'), + (r'^user/unlink/(?P<person_id>[^/]+)/$', 'patchwork.views.user.unlink'), + + # public view for bundles + (r'^bundle/(?P<username>[^/]*)/(?P<bundlename>[^/]*)/$', + 'patchwork.views.bundle.public'), + + # submitter autocomplete + (r'^submitter/$', 'patchwork.views.submitter_complete'), +) |