reviewboard.reviews.views.root¶
Root view for reviews.
- class RootView(**kwargs)[source]¶
Bases:
CheckLoginRequiredViewMixin
,UserProfileRequiredViewMixin
,CheckLocalSiteAccessViewMixin
,RedirectView
Handles the root URL of Review Board or a Local Site.
If the user is authenticated, this will redirect to their Dashboard. Otherwise, they’ll be redirected to the All Review Requests page.
Either page may then redirect for login or show a Permission Denied, depending on the settings.
- get_redirect_url(*args, **kwargs) str [source]¶
Return the URL to redirect to.
- Parameters:
- Returns:
The URL to redirect to. If the user is authenticated, this will return the dashboard’s URL. Otherwise, it will return the All Review Request page’s URL.
- Return type:
- __annotations__ = {}¶