Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If Call AttributeLoad NameLoad attr Str body Return Call Call NameLoad NameLoad NameLoad NameLoad orelse Return Call NameLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body If Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list NameLoad
N/A __future__ unicode_literals django.contrib.auth.decorators login_required djblets.siteconfig.models SiteConfiguration djblets.util.decorators simple_decorator reviewboard.accounts.models Profile check_login_required N/A N/A view_func N/A N/A N/A Check whether the user needs to log in.

    This is a view decorator that checks whether login is required on this
    installation and, if so, checks if the user is logged in. If login is
    required and the user is not logged in, they're redirected to the login
    link.
     _check N/A N/A N/A args kwargs N/A N/A siteconfig N/A N/A N/A SiteConfiguration objects get_current N/A N/A N/A siteconfig get auth_require_sitewide_login N/A N/A N/A N/A login_required view_func args kwargs N/A N/A N/A view_func args kwargs N/A N/A _check N/A simple_decorator valid_prefs_required N/A N/A view_func N/A N/A N/A Check whether the profile object exists.

    Several views assume that the user profile object exists, and will break if
    it doesn't. This decorator will ensure that the profile exists before the
    view code runs.

    If the user is not logged in, this will do nothing. That allows it to
    be used with @check_login_required.
     _check_valid_prefs N/A N/A request N/A args kwargs N/A N/A N/A N/A N/A request user is_authenticated N/A N/A N/A N/A N/A Profile objects get_or_create user N/A request user N/A N/A view_func request args kwargs N/A N/A _check_valid_prefs N/A simple_decorator