Bases: object
Mixin that adds the get_policy_target function
- policy_target_attrs - a tuple of tuples which defines
- the relationship between attributes in the policy
target dict and attributes in the passed datum object.
policy_target_attrs can be overwritten by sub-classes
which do not use the default, so they can neatly define
their policy target information, without overriding the
entire get_policy_target function.
-
get_policy_target(request, datum=None)[source]
-
policy_target_attrs = (('project_id', 'tenant_id'), ('user_id', 'user_id'), ('domain_id', 'domain_id'))