The openstack_dashboard.policy ModuleΒΆ

class openstack_dashboard.policy.PolicyTargetMixin[source]

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'), ('target.project.domain_id', 'domain_id'), ('target.user.domain_id', 'domain_id'), ('target.group.domain_id', 'domain_id'))
openstack_dashboard.policy.check(actions, request, target=None)[source]

Wrapper of the configurable policy method.

Previous topic

The openstack_dashboard Module

Next topic

The openstack_dashboard.static_settings Module

Project Source

This Page