summaryrefslogtreecommitdiffstats
path: root/apps/patchwork/urls.py
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2010-08-12 12:15:48 +0800
committerJeremy Kerr <jk@ozlabs.org>2011-04-14 16:44:53 +0800
commit56e2243f3be7e859666ce0e4e1a8b8b94444f8d4 (patch)
tree7d3cf84b990a1b732d0334c5520f3203a955df12 /apps/patchwork/urls.py
parentc3291f5d18445cd91b540342d31d76254b32376c (diff)
downloadpatchwork-56e2243f3be7e859666ce0e4e1a8b8b94444f8d4.tar.bz2
patchwork-56e2243f3be7e859666ce0e4e1a8b8b94444f8d4.tar.xz
Use generic email confirmation object
Rather than having a UserPerson-specific confirmation, add an EmailConfirmation object to allow multiple types of confirmations (eg, opt-out requests in future). To do this, we use a view (patchwork.views.confirm) that will call the type-specific view with the confirmation object. Also, add tests to check that the User/Person linkage system works. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps/patchwork/urls.py')
-rw-r--r--apps/patchwork/urls.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/patchwork/urls.py b/apps/patchwork/urls.py
index b49b4e1..27c79fd 100644
--- a/apps/patchwork/urls.py
+++ b/apps/patchwork/urls.py
@@ -44,13 +44,14 @@ urlpatterns = patterns('',
'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'),
+ (r'^confirm/(?P<key>[0-9a-f]+)/$', 'patchwork.views.confirm'),
+
# submitter autocomplete
(r'^submitter/$', 'patchwork.views.submitter_complete'),