vmware-nsx/quantum/openstack/common
Kevin L. Mitchell 1a1aecf245 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.

(Pull-up from openstack-common, with deprecation of HttpBrain.)

Change-Id: I0aa78d1128e55aa7d59558c62128105c01da8f1b
2012-08-06 10:00:47 -05:00
..
notifier fix bug lp:1025526,update iniparser.py to accept empty value. 2012-07-19 18:46:19 +08:00
rpc Update openstack-common files. 2012-07-24 02:35:12 -04:00
__init__.py Split out pip requires and aligned tox file. 2012-03-14 23:20:22 -07:00
cfg.py Introduce files from openstack common. 2012-07-17 06:41:14 +08:00
context.py fix bug lp:1019230,update rpc from openstack-common. 2012-07-11 00:46:59 +08:00
exception.py fix bug lp:1019230,update rpc from openstack-common. 2012-07-11 00:46:59 +08:00
excutils.py fix bug lp:1019230,update rpc from openstack-common. 2012-07-11 00:46:59 +08:00
gettextutils.py fix bug lp:1019230,update rpc from openstack-common. 2012-07-11 00:46:59 +08:00
importutils.py Introduce files from openstack common. 2012-07-17 06:41:14 +08:00
iniparser.py fix bug lp:1025526,update iniparser.py to accept empty value. 2012-07-19 18:46:19 +08:00
jsonutils.py Update openstack-common files. 2012-07-24 02:35:12 -04:00
local.py fix bug lp:1019230,update rpc from openstack-common. 2012-07-11 00:46:59 +08:00
log.py fix bug lp:1025526,update iniparser.py to accept empty value. 2012-07-19 18:46:19 +08:00
policy.py Use function registration for policy checks 2012-08-06 10:00:47 -05:00
setup.py Fix up test running to match jenkins expectation. 2012-06-10 15:20:16 -04:00
timeutils.py Introduce files from openstack common. 2012-07-17 06:41:14 +08:00