]> git.ozlabs.org Git - patchwork/commit
Use generic email confirmation object
authorJeremy Kerr <jk@ozlabs.org>
Thu, 12 Aug 2010 04:15:48 +0000 (12:15 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 14 Apr 2011 08:44:53 +0000 (16:44 +0800)
commit56e2243f3be7e859666ce0e4e1a8b8b94444f8d4
tree7d3cf84b990a1b732d0334c5520f3203a955df12
parentc3291f5d18445cd91b540342d31d76254b32376c
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>
12 files changed:
apps/patchwork/models.py
apps/patchwork/tests/__init__.py
apps/patchwork/tests/confirm.py [new file with mode: 0644]
apps/patchwork/tests/user.py [new file with mode: 0644]
apps/patchwork/urls.py
apps/patchwork/views/base.py
apps/patchwork/views/user.py
lib/sql/grant-all.mysql.sql
lib/sql/grant-all.postgres.sql
lib/sql/migration/008-confirmations.sql [new file with mode: 0644]
templates/patchwork/confirm-error.html [new file with mode: 0644]
templates/patchwork/user-link.mail