diff options
| author | Kevin L. Mitchell <kevin.mitchell@rackspace.com> | 2012-07-30 19:23:28 -0500 |
|---|---|---|
| committer | Kevin L. Mitchell <kevin.mitchell@rackspace.com> | 2012-07-30 19:23:54 -0500 |
| commit | dba9636e6df092d768d04cfaee839b76722e2393 (patch) | |
| tree | 4f3d740773f21600be6d43344575790f56ef8d5b /openstack/common/plugin/pluginmanager.py | |
| parent | e0134fc3e2d7e59741b3643e2680f578cc9def41 (diff) | |
| download | oslo-dba9636e6df092d768d04cfaee839b76722e2393.tar.gz oslo-dba9636e6df092d768d04cfaee839b76722e2393.tar.xz oslo-dba9636e6df092d768d04cfaee839b76722e2393.zip | |
Use function registration for policy checks
The original policy framework allowed new policy checks to be created
through inheritance. This is somewhat clunky and unnecessary in
Python. This change refactors policy.py to allow new policy checks
to be registered using an @register() decorator. One consequence is
that HttpBrain is deprecated.
Care has been taken to ensure backwards compatibility; deprecation
warnings will be emitted for uses of HttpBrain or the inheritance-
based checks.
Change-Id: I3ccef5868906ef64a3c24d6c92533471e89682ba
Diffstat (limited to 'openstack/common/plugin/pluginmanager.py')
0 files changed, 0 insertions, 0 deletions
