
chipx86 got a fish trophy!

Add hooks for creating account pages and forms.
Review Request #5335 — Created Jan. 27, 2014 and submitted — Latest diff uploaded
Add hooks for creating account pages and forms.
This introduces
AccountPagesHook
andAccountPageFormsHook
, which allow
extensions to add to the My Account page. It also provides documentation
on using them.While implementing an extension, I decided to change some of the naming.
reviewboard.accounts.forms.account
is now
reviewboard.accounts.forms.pages
, which helps tie the forms to the pages
reviewboard.accounts.page
module, and removes the double "account."
I also renamedAccountForm
toAccountPageForm
.
Added a test page in an extension with a form. Also added a form to the
Authentication page. Both worked.
Diff Revision 2
This is not the most recent revision of the diff. The latest diff is revision 3. See what's changed.
docs/manual/extending/extensions/hooks.txt | ||
reviewboard/accounts/pages.py | ||
reviewboard/accounts/tests.py | ||
reviewboard/accounts/forms/pages.py Was reviewboard/accounts/forms/account.py | ||
reviewboard/extensions/hooks.py |
docs/manual/extending/extensions/hooks.txt |
---|
reviewboard/accounts/pages.py |
---|
reviewboard/accounts/tests.py |
---|
reviewboard/accounts/forms/account.py |
---|
reviewboard/extensions/hooks.py |
---|