oslo.context/oslo_context
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
..
tests Make from_dict extensible 2017-10-11 21:46:02 +00:00
__init__.py Move out of the oslo namespace package 2014-11-14 13:52:32 -05:00
context.py Make from_dict extensible 2017-10-11 21:46:02 +00:00
fixture.py ensure we reset contexts when fixture is used 2015-03-05 12:12:27 -05:00
version.py pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz) 2017-02-06 12:49:22 -05:00