Jump to >

reviewboard.accounts.pages

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

Bases: 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.

classmethod add_form(form_cls)[source]

Add a form class to this page.

classmethod remove_form(form_cls)[source]

Remove a form class from this page.

The form class must have been previously added to this page.

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

Bases: reviewboard.accounts.pages.AccountPage

A page containing the primary settings the user can customize.

page_id = u’settings’[source]
page_title = _(u’Settings’)[source]
form_classes = [<class ‘reviewboard.accounts.forms.pages.AccountSettingsForm’>][source]
class APITokensPage(config_view, request, user)[source]

Bases: reviewboard.accounts.pages.AccountPage

A page containing settings for API tokens.

page_id = u’api-tokens’[source]
page_title = _(u’API Tokens’)[source]
form_classes = [<class ‘reviewboard.accounts.forms.pages.APITokensForm’>][source]
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 = u’authentication’[source]
page_title = _(u’Authentication’)[source]
form_classes = [<class ‘reviewboard.accounts.forms.pages.ChangePasswordForm’>][source]
class ProfilePage(config_view, request, user)[source]

Bases: reviewboard.accounts.pages.AccountPage

A page containing settings for the user’s profile.

page_id = u’profile’[source]
page_title = _(u’Profile’)[source]
form_classes = [<class ‘reviewboard.accounts.forms.pages.ProfileForm’>][source]
class GroupsPage(config_view, request, user)[source]

Bases: reviewboard.accounts.pages.AccountPage

A page containing a filterable list of groups to join.

page_id = u’groups’[source]
page_title = _(u’Groups’)[source]
form_classes = [<class ‘reviewboard.accounts.forms.pages.GroupsForm’>][source]
register_account_page_class(page_cls)[source]

Register a custom account page class.

A page ID is considered unique and can only be registered once. A KeyError will be thrown if attempting to register a second time.

unregister_account_page_class(page_cls)[source]

Unregister a previously registered account page class.

get_page_class(page_id)[source]

Get the My Account page class with the specified ID.

If the page could not be found, this will return None.

get_page_classes()[source]

Get all registered page classes.