OpenStack Context library
Go to file
Ben Nemec e75f4c5ad9 Make from_dict extensible
Some of our consumers define additional members on the context class
that they want included in to_dict and from_dict.  While it is
possible to do this today via overrides of those functions, the
from_dict implementation in particular is a little non-obvious.
This has led to bugs when the base class's to_dict behavior changes.

This change moves the logic around extending the keys recognized by
from_dict into from_dict itself and allows consumers to simply
provide a list of those keys by overriding a class member.

Change-Id: Ib143f8a5c129dbf6711800c4d87c8830a8aa3365
Related-Bug: 1721432
2017-10-11 21:46:02 +00:00
doc/source Update the documentation link for doc migration 2017-08-28 15:30:36 +08:00
oslo_context Make from_dict extensible 2017-10-11 21:46:02 +00:00
releasenotes Update reno for stable/pike 2017-07-28 21:04:43 +00:00
tools Add Constraints support 2016-12-20 14:36:12 +11:00
.coveragerc Fix coverage configuration and execution 2015-10-09 16:11:45 -04:00
.gitignore Add reno for releasenotes management 2016-05-20 17:58:52 +03:00
.gitreview exported from oslo-incubator by graduate.sh 2014-11-05 15:03:32 +01:00
.mailmap exported from oslo-incubator by graduate.sh 2014-11-05 15:03:32 +01:00
.testr.conf Move out of the oslo namespace package 2014-11-14 13:52:32 -05:00
CONTRIBUTING.rst Cleanup document formatting 2017-07-05 02:27:14 +09:00
HACKING.rst Fix URLs according to document migration 2017-07-12 22:46:06 +08:00
LICENSE exported from oslo-incubator by graduate.sh 2014-11-05 15:03:32 +01:00
README.rst Fix URLs according to document migration 2017-07-12 22:46:06 +08:00
babel.cfg exported from oslo-incubator by graduate.sh 2014-11-05 15:03:32 +01:00
requirements.txt Remove use of positional decorator 2017-08-07 16:11:39 -07:00
setup.cfg Fix URLs according to document migration 2017-07-12 22:46:06 +08:00
setup.py Updated from global requirements 2017-03-03 03:06:56 +00:00
test-requirements.txt Updated from global requirements 2017-09-20 16:22:52 +00:00
tox.ini Remove references to Python 3.4 2017-01-09 10:13:16 -08:00

README.rst

Oslo Context Library

The Oslo context library has helpers to maintain useful information about a request context. The request context is usually populated in the WSGI pipeline and used by various modules such as logging.

Team and repository tags

image

Latest Version

Downloads