Jump to >

reviewboard.accounts.pages

class AccountPageRegistry[source]

Bases: djblets.registries.mixins.ExceptionFreeGetterMixin, djblets.configforms.registry.ConfigPageRegistry

A registry for managing account pages.

lookup_attrs = ('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

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.

__annotations__ = {}
class AccountPage(config_view, request, user)[source]

Bases: djblets.configforms.mixins.DynamicConfigPageMixin, djblets.configforms.pages.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.

registry = <reviewboard.accounts.pages.AccountPageRegistry object>[source]
classmethod get_absolute_url()[source]

Return the absolute URL of the page.

Returns

The absolute URL of the page.

Return type

unicode

class AccountSettingsPage(config_view, request, user)[source]

Bases: reviewboard.accounts.pages.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.

page_title = 'Settings'[source]

The displayed title for the page.

This will show up in the navigation sidebar.

form_classes = [<class 'reviewboard.accounts.forms.pages.AccountSettingsForm'>][source]

The list of form subclasses to display on the page.

__annotations__ = {}
class AuthenticationPage(config_view, request, user)[source]

Bases: reviewboard.accounts.pages.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.

page_title = 'Authentication'[source]

The displayed title for the page.

This will show up in the navigation sidebar.

form_classes = [<class 'reviewboard.accounts.forms.pages.ChangePasswordForm'>, <class 'reviewboard.accounts.forms.pages.APITokensForm'>, <class 'reviewboard.accounts.forms.pages.OAuthTokensForm'>][source]

The list of form subclasses to display on the page.

__annotations__ = {}
class ProfilePage(config_view, request, user)[source]

Bases: reviewboard.accounts.pages.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.

page_title = 'Profile'[source]

The displayed title for the page.

This will show up in the navigation sidebar.

form_classes = [<class 'reviewboard.accounts.forms.pages.ProfileForm'>, <class 'reviewboard.accounts.forms.pages.AvatarSettingsForm'>][source]

The list of form subclasses to display on the page.

__annotations__ = {}
class GroupsPage(config_view, request, user)[source]

Bases: reviewboard.accounts.pages.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.

page_title = 'Groups'[source]

The displayed title for the page.

This will show up in the navigation sidebar.

form_classes = [<class 'reviewboard.accounts.forms.pages.GroupsForm'>][source]

The list of form subclasses to display on the page.

__annotations__ = {}
class OAuth2Page(config_view, request, user)[source]

Bases: reviewboard.accounts.pages.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.

page_title = 'OAuth2 Applications'[source]

The displayed title for the page.

This will show up in the navigation sidebar.

form_classes = [<class 'reviewboard.accounts.forms.pages.OAuthApplicationsForm'>][source]

The list of form subclasses to display on the page.

__annotations__ = {}
class PrivacyPage(config_view, request, user)[source]

Bases: reviewboard.accounts.pages.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.

page_title = 'My Privacy Rights'[source]

The displayed title for the page.

This will show up in the navigation sidebar.

form_classes = [<class 'reviewboard.accounts.forms.pages.PrivacyForm'>][source]

The list of form subclasses to display on the page.

__annotations__ = {}