Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore Dict Str Str Str Str Str Str Dict Str Str NameLoad Str Dict Str Str AttributeLoad NameLoad attr Str Dict Str Str AttributeLoad NameLoad attr Str Dict Str Str AttributeLoad NameLoad attr Str Dict Str Str AttributeLoad NameLoad attr Str Dict Str Str AttributeLoad NameLoad attr Str Assign NameStore Str Assign NameStore TupleLoad Str Str Str Str FunctionDef arguments args NameParam NameParam defaults kwarg body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad vararg kwarg body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad If NameLoad body If CompareIn Str AttributeLoad NameLoad attr body For NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type NameLoad body Pass If CompareIn Str AttributeLoad NameLoad attr body For NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad If CompareIn Str AttributeLoad NameLoad attr body For NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Pass decorator_list NameLoad Call NameLoad NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Pass decorator_list NameLoad Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad vararg kwarg body Expr Str If UnaryOpNot Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareEq NameLoad Num body Return TupleLoad Num NameLoad orelse Return TupleLoad NameLoad NameLoad decorator_list NameLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad Call NameLoad keyword Dict Str Str Dict Str Str AttributeLoad NameLoad attr Str Dict Str Str AttributeLoad NameLoad attr Str keyword Dict Str Str Str Dict Str Str AttributeLoad NameLoad attr Str Dict Str Str AttributeLoad NameLoad attr Str Dict Str Str AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad vararg kwarg body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Return NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list NameLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad Call NameLoad keyword Dict Str Str Str Str Str Dict Str Str AttributeLoad NameLoad attr Str Dict Str Str AttributeLoad NameLoad attr Str Dict Str Str AttributeLoad NameLoad attr Str Dict Str Str AttributeLoad NameLoad attr Str Dict Str Str AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Assign NameStore Dict Assign NameStore Dict If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad attr Str If CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str ListLoad Str Assign SubscriptStore NameLoad Index Str NameLoad If CompareIn Str NameLoad body Assign NameStore ListLoad TryExcept body Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str handlers ExceptHandler type NameLoad body Assign SubscriptStore NameLoad Index Str ListLoad Str If NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad attr If CompareNotEq Call NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str ListLoad Str Assign SubscriptStore NameLoad Index Str NameLoad If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad attr Str If CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str ListLoad Str Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Return TupleLoad NameLoad Dict Str NameLoad For NameStore TupleLoad Str Str body If CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str If CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Return TupleLoad NameLoad Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Return TupleLoad Num Dict AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Pass decorator_list Call NameLoad NameLoad decorator_list Assign NameStore Call NameLoad
N/A __future__ unicode_literals django.contrib.auth.models User django.core.exceptions ObjectDoesNotExist django.utils six djblets.util.decorators augment_method_from djblets.webapi.decorators webapi_login_required webapi_response_errors webapi_request_fields djblets.webapi.errors DOES_NOT_EXIST INVALID_FORM_DATA NOT_LOGGED_IN PERMISSION_DENIED reviewboard.reviews.forms DefaultReviewerForm reviewboard.reviews.models DefaultReviewer Group reviewboard.scmtools.models Repository reviewboard.webapi.base WebAPIResource reviewboard.webapi.decorators webapi_check_login_required webapi_check_local_site DefaultReviewerResource N/A WebAPIResource N/A N/A Provides information on default reviewers for review requests.

    Review Board will apply any default reviewers that match the repository
    and any file path in an uploaded diff for new and updated review requests.
    A default reviewer entry can list multiple users and groups.

    This is useful when different groups own different parts of a codebase.
    Adding DefaultReviewer entries ensures that the right people will always
    see the review request and discussions.

    Default reviewers take a regular expression for the file path matching,
    making it flexible.

    As a tip, specifying ``.*`` for the regular expression would have this
    default reviewer applied to every review request on the matched
    repositories.
     N/A added_in 1.6.16 N/A name default_reviewer N/A model DefaultReviewer N/A fields N/A id name file_regex repositories users groups N/A type description int The numeric ID of the default reviewer. N/A type description N/A six text_type The descriptive name of the entry. N/A type description N/A six text_type The regular expression that is used to match files uploaded in a diff. N/A type description N/A six text_type A comma-separated list of repository IDs that this default reviewer will match against. N/A type description N/A six text_type A comma-separated list of usernames that this default reviewer applies to matched review requests. N/A type description N/A six text_type A comma-separated list of group names that this default reviewer applies to matched review requests. N/A uri_object_key default_reviewer_id N/A allowed_methods N/A GET POST PUT DELETE serialize_repositories_field N/A N/A self default_reviewer N/A kwargs N/A N/A N/A N/A N/A default_reviewer repository all N/A serialize_users_field N/A N/A self default_reviewer N/A kwargs N/A N/A N/A N/A N/A default_reviewer people all N/A get_queryset N/A N/A self request is_list local_site N/A False None args kwargs N/A N/A Returns a queryset for DefaultReviewer models.

        By default, this returns all default reviewers.

        If the queryset is being used for a list of default reviewer
        resources, then it can be further filtered by one or more of the
        arguments listed in get_list.
         N/A queryset N/A N/A N/A N/A self model objects filter local_site local_site N/A is_list N/A N/A N/A repositories N/A request GET N/A N/A repo_id N/A N/A N/A N/A N/A request GET get repositories split , N/A N/A N/A N/A queryset N/A N/A queryset filter repository repo_id N/A N/A N/A ValueError N/A N/A N/A N/A users N/A request GET N/A N/A username N/A N/A N/A N/A N/A request GET get users split , N/A N/A queryset N/A N/A queryset filter people__username username N/A N/A groups N/A request GET N/A N/A name N/A N/A N/A N/A N/A request GET get groups split , N/A N/A queryset N/A N/A queryset filter groups__name name N/A queryset N/A webapi_check_login_required has_access_permissions N/A N/A self request default_reviewer N/A args kwargs N/A N/A N/A N/A default_reviewer is_accessible_by N/A request user N/A has_modify_permissions N/A N/A self request default_reviewer N/A args kwargs N/A N/A N/A N/A default_reviewer is_mutable_by N/A request user N/A has_delete_permissions N/A N/A self request default_reviewer N/A args kwargs N/A N/A N/A N/A default_reviewer is_mutable_by N/A request user N/A get_list N/A N/A self request N/A args kwargs N/A N/A Retrieves the list of default reviewers on the server.

        By default, this lists all default reviewers. This list can be
        further filtered down by one or more of the following arguments
        in the URL:

          * ``repositories``
              - A comma-separated list of IDs of repositories that the default
                reviewer matches against. Only default reviewers that match
                every specified repository will be returned.

          * ``users``
              - A comma-separated list of usernames that the default reviewer
                applies. Only default reviewers that apply each of these users
                will be returned.

          * ``groups``
              - A comma-separated list of group names that the default reviewer
                applies. Only default reviewers that apply each of these groups
                will be returned.
         N/A N/A webapi_check_local_site N/A augment_method_from WebAPIResource get N/A N/A self N/A args kwargs N/A N/A Retrieves information on a particular default reviewer. N/A N/A webapi_check_local_site N/A augment_method_from WebAPIResource create N/A N/A self request local_site N/A None args kwargs N/A N/A Creates a new default reviewer entry.

        Note that by default, a default reviewer will apply to review
        requests on all repositories, unless one or more repositories are
        provided in the default reviewer's list.
         N/A N/A N/A N/A N/A N/A self model objects can_create N/A request user local_site N/A N/A N/A N/A self get_no_access_error request N/A N/A code data N/A N/A self _create_or_update local_site kwargs N/A N/A code 200 N/A N/A N/A 201 data N/A N/A N/A code data N/A webapi_check_local_site webapi_login_required N/A webapi_response_errors INVALID_FORM_DATA NOT_LOGGED_IN PERMISSION_DENIED N/A webapi_request_fields required N/A name file_regex N/A type description N/A six text_type The name of the default reviewer entry. N/A type description N/A six text_type The regular expression used to match file paths in newly uploaded diffs. optional N/A repositories groups users N/A type description N/A six text_type A comma-separated list of repository IDs. N/A type description N/A six text_type A comma-separated list of group names. N/A type description N/A six text_type A comma-separated list of usernames. update N/A N/A self request local_site N/A None args kwargs N/A N/A Updates an existing default reviewer entry.

        If the list of repositories is updated with a blank entry, then
        the default reviewer will apply to review requests on all repositories.
         N/A N/A N/A default_reviewer N/A N/A self get_object request local_site local_site args kwargs N/A N/A N/A ObjectDoesNotExist N/A N/A DOES_NOT_EXIST N/A N/A N/A N/A self has_modify_permissions request default_reviewer N/A N/A N/A N/A self get_no_access_error request N/A N/A N/A self _create_or_update local_site default_reviewer kwargs N/A webapi_check_local_site webapi_login_required N/A webapi_response_errors INVALID_FORM_DATA NOT_LOGGED_IN PERMISSION_DENIED N/A webapi_request_fields optional N/A name file_regex repositories groups users N/A type description N/A six text_type The name of the default reviewer entry. N/A type description N/A six text_type The regular expression used to match file paths in newly uploaded diffs. N/A type description N/A six text_type A comma-separated list of repository IDs. N/A type description N/A six text_type A comma-separated list of group names. N/A type description N/A six text_type A comma-separated list of usernames. _create_or_update N/A N/A self local_site default_reviewer N/A None kwargs N/A N/A invalid_fields N/A N/A form_data N/A N/A N/A groups kwargs N/A N/A group_names N/A N/A N/A kwargs N/A groups split , N/A group_ids N/A N/A group N/A pk N/A group N/A N/A N/A N/A N/A Group objects filter name__in group_names local_site local_site values pk N/A N/A N/A len group_ids N/A len group_names N/A N/A N/A invalid_fields N/A groups N/A One or more groups were not found N/A N/A form_data N/A groups group_ids N/A N/A repositories kwargs N/A N/A repo_ids N/A N/A N/A N/A repo_ids N/A N/A int repo_id N/A repo_id N/A N/A N/A kwargs N/A repositories split , N/A N/A N/A ValueError N/A N/A N/A invalid_fields N/A repositories N/A One or more repository IDs were not in a valid format. N/A repo_ids N/A N/A found_count N/A N/A N/A N/A N/A Repository objects filter pk__in repo_ids local_site local_site count N/A N/A N/A len repo_ids found_count N/A N/A N/A invalid_fields N/A repositories N/A One or more repositories were not found N/A N/A form_data N/A repository repo_ids N/A N/A users kwargs N/A N/A usernames N/A N/A N/A kwargs N/A users split , N/A user_ids N/A N/A user N/A pk N/A user N/A N/A N/A N/A N/A User objects filter username__in usernames values pk N/A N/A N/A len user_ids N/A len usernames N/A N/A N/A invalid_fields N/A users N/A One or more users were not found N/A N/A form_data N/A people user_ids N/A invalid_fields N/A N/A N/A INVALID_FORM_DATA N/A fields invalid_fields N/A field N/A name file_regex N/A N/A N/A field kwargs N/A N/A N/A form_data N/A field N/A kwargs N/A field N/A local_site N/A N/A N/A form_data N/A local_site N/A local_site pk N/A form N/A DefaultReviewerForm form_data instance default_reviewer N/A N/A N/A N/A form is_valid N/A N/A field_errors N/A N/A self _get_form_errors form N/A N/A people field_errors N/A N/A N/A field_errors N/A users N/A N/A field_errors pop people N/A N/A repository field_errors N/A N/A N/A field_errors N/A repositories N/A N/A field_errors pop repository N/A N/A INVALID_FORM_DATA N/A fields field_errors N/A default_reviewer N/A N/A form save N/A N/A 200 N/A N/A self item_result_key default_reviewer N/A delete N/A N/A self N/A args kwargs N/A N/A Deletes the default reviewer entry.

        This will not remove any reviewers from any review requests.
        It will only prevent these default reviewer rules from being
        applied to any new review requests or updates.
         N/A N/A N/A augment_method_from WebAPIResource N/A N/A default_reviewer_resource N/A DefaultReviewerResource