"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cyborg/api/hooks.py" between
openstack-cyborg-8.0.0.tar.gz and openstack-cyborg-9.0.0.tar.gz

About: OpenStack Cyborg provides a general purpose management framework for acceleration resources.
The "Zed" series (latest release).

hooks.py  (openstack-cyborg-8.0.0):hooks.py  (openstack-cyborg-9.0.0)
skipping to change at line 56 skipping to change at line 56
def before(self, state): def before(self, state):
state.request.conductor_api = self.conductor_api state.request.conductor_api = self.conductor_api
class ContextHook(hooks.PecanHook): class ContextHook(hooks.PecanHook):
"""Configures a request context and attaches it to the request. """Configures a request context and attaches it to the request.
The following HTTP request headers are used: The following HTTP request headers are used:
X-User-Id or X-User: X-User-Id or X-User:
Used for context.user. Used for context.user_id.
X-Tenant-Id or X-Tenant: X-Tenant-Id or X-Tenant:
Used for context.tenant. Used for context.project_id.
X-Auth-Token: X-Auth-Token:
Used for context.auth_token. Used for context.auth_token.
X-Roles: X-Roles:
Used for setting context.is_admin flag to either True or False. Used for setting context.is_admin flag to either True or False.
The flag is set to True, if X-Roles contains either an administrator The flag is set to True, if X-Roles contains either an administrator
or admin substring. Otherwise it is set to False. or admin substring. Otherwise it is set to False.
""" """
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)