Module ImportFrom alias ImportFrom alias alias alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If Call AttributeLoad AttributeLoad NameLoad attr attr body Return NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Dict Str Str NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Dict NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Dict NameLoad handlers ExceptHandler type NameLoad body Return NameLoad orelse Return CompareEq NameLoad NameLoad decorator_list decorator_list
N/A rest_framework permissions base BasePermissionComponent BaseComposedPermision And Or AllowAll N/A BasePermissionComponent N/A N/A 
    Always allow all requests without
    any constraints.
     has_permission N/A N/A self permission request view N/A N/A N/A True N/A N/A AllowOnlyAnonymous N/A BasePermissionComponent N/A N/A 
    Allow only anonymous requests.
     has_permission N/A N/A self permission request view N/A N/A N/A N/A N/A N/A request user is_anonymous N/A N/A AllowOnlyAuthenticated N/A BasePermissionComponent N/A has_permission N/A N/A self permission request view N/A N/A N/A N/A N/A N/A request user is_anonymous N/A N/A False N/A True N/A N/A AllowOnlySafeHttpMethod N/A BasePermissionComponent N/A has_permission N/A N/A self permission request view N/A N/A N/A N/A N/A request method N/A permissions SAFE_METHODS N/A N/A True N/A False N/A N/A ObjectAttrEqualToObjectAttr N/A BasePermissionComponent N/A N/A 
    This is a object level permision component and if is used on
    global permission context it always returns True.

    This component checks the equality of two expressions that are
    evaluted in "safe" way. On the context of eval are exposed "obj"
    as current object and "request" as the current request.

    This component works well for check a object owner os similary.

    Example:

    .. code-block:: python

        class SomePermission(BaseComposedPermision):
            global_permission_set = (lambda self: AllowAll)
            object_permission_set = (lambda self:
                                        ObjectAttrEqualToObjectAttr("request.user", "obj.owner"))
     __init__ N/A N/A self obj_attr1 obj_attr2 N/A N/A N/A N/A self obj_attr1 obj_attr1 N/A N/A self obj_attr2 obj_attr2 N/A has_object_permission N/A N/A self permission request view obj N/A N/A N/A safe_locals N/A obj request obj request N/A N/A N/A attr1_value N/A eval N/A self obj_attr1 N/A safe_locals N/A attr2_value N/A eval N/A self obj_attr2 N/A safe_locals N/A N/A N/A AttributeError N/A N/A False N/A N/A N/A attr1_value attr2_value N/A N/A