The openstack_dashboard.openstack.common.context ModuleΒΆ

Simple class that stores security context information in the web request.

Projects should subclass this class if they wish to enhance the request context or provide additional information in their specific WSGI pipeline.

class openstack_dashboard.openstack.common.context.RequestContext(auth_token=None, user=None, tenant=None, is_admin=False, read_only=False, show_deleted=False, request_id=None)[source]

Bases: object

Stores information about the security context under which the user accesses the system, as well as additional request information.

RequestContext.to_dict()[source]
openstack_dashboard.openstack.common.context.generate_request_id()[source]
openstack_dashboard.openstack.common.context.get_admin_context(show_deleted='no')[source]
openstack_dashboard.openstack.common.context.get_context_from_function_and_args(function, args, kwargs)[source]

Find an arg of type RequestContext and return it.

This is useful in a couple of decorators where we don’t know much about the function we’re wrapping.

Previous topic

The openstack_dashboard.openstack.common.loopingcall Module

Next topic

The openstack_dashboard.openstack.common.threadgroup Module

This Page