reviewboard.accounts.pages¶
- class AccountPageRegistry[source]¶
Bases:
ExceptionFreeGetterMixin
,ConfigPageRegistry
A registry for managing account pages.
- lookup_attrs: Sequence[str] = ('page_id',)[source]¶
A list of attributes that items can be looked up by.
- get_defaults()[source]¶
Return the default page classes.
- Returns:
The page classes, as subclasses of
AccountPage
.- Return type:
- unregister(page_class)[source]¶
Unregister the page class.
- Parameters:
page_class (
type
) – The page class to unregister.- Raises:
ItemLookupError – This exception is raised if the specified page class cannot be found.
- __parameters__ = ()¶
- class AccountPage(config_view, request, user)[source]¶
Bases:
DynamicConfigPageMixin
,ConfigPage
Base class for a page of forms in the My Account page.
Each AccountPage is represented in the My Account page by an entry in the navigation sidebar. When the user has navigated to that page, any forms shown on the page will be displayed.
Extensions can provide custom pages in order to offer per-user customization.
- class AccountSettingsPage(config_view, request, user)[source]¶
Bases:
AccountPage
A page containing the primary settings the user can customize.
- page_id = 'settings'[source]¶
The unique ID of the page.
This must be unique across all ConfigPages at a given URL.
- class AuthenticationPage(config_view, request, user)[source]¶
Bases:
AccountPage
A page containing authentication-related forms.
By default, this just shows the Change Password form, but extensions can provide additional forms for display.
- page_id = 'authentication'[source]¶
The unique ID of the page.
This must be unique across all ConfigPages at a given URL.
- class ProfilePage(config_view, request, user)[source]¶
Bases:
AccountPage
A page containing settings for the user’s profile.
- page_id = 'profile'[source]¶
The unique ID of the page.
This must be unique across all ConfigPages at a given URL.
- class GroupsPage(config_view, request, user)[source]¶
Bases:
AccountPage
A page containing a filterable list of groups to join.
- page_id = 'groups'[source]¶
The unique ID of the page.
This must be unique across all ConfigPages at a given URL.
- class OAuth2Page(config_view, request, user)[source]¶
Bases:
AccountPage
A page containing a list of OAuth2 applications to manage.
- page_id = 'oauth2'[source]¶
The unique ID of the page.
This must be unique across all ConfigPages at a given URL.
- class PrivacyPage(config_view, request, user)[source]¶
Bases:
AccountPage
A page containing information on a user’s privacy rights.
- page_id = 'privacy'[source]¶
The unique ID of the page.
This must be unique across all ConfigPages at a given URL.