reviewboard.accounts.forms.pages¶
-
class
AccountPageForm(page, request, user, *args, **kwargs)[source]¶ Bases:
djblets.configforms.forms.ConfigPageFormBase class for a form on the My Account page.
AccountPageForms belong to AccountPages, and will be displayed on the My Account page for a user.
A simple form presents fields that can be filled out and posted. More advanced forms can supply their own template or even their own JavaScript models and views.
-
class
AccountSettingsForm(page, request, user, *args, **kwargs)[source]¶ Bases:
reviewboard.accounts.forms.pages.AccountPageFormForm for the Settings page for an account.
-
class
APITokensForm(page, request, user, *args, **kwargs)[source]¶ Bases:
reviewboard.accounts.forms.pages.AccountPageFormForm for showing a user’s API tokens.
-
class
ChangePasswordForm(page, request, user, *args, **kwargs)[source]¶ Bases:
reviewboard.accounts.forms.pages.AccountPageFormForm for changing a user’s password.
-
clean_old_password()[source]¶ Validate the ‘old_password’ field.
This checks to make sure the old password is correct when changing the password.
-
-
class
ProfileForm(page, request, user, *args, **kwargs)[source]¶ Bases:
reviewboard.accounts.forms.pages.AccountPageFormForm for the Profile page for an account.
-
class
GroupsForm(page, request, user, *args, **kwargs)[source]¶ Bases:
reviewboard.accounts.forms.pages.AccountPageFormForm for the group membership page.
Unlike most forms, this doesn’t deal with fields or saving to the database. Instead, it sets up the JavaScript View and provides serialized data representing the groups. The View handles group membership through the API.