Wrap config module and require manual setup (bug 1143998)

This moves keystone.config to keystone.common.config, which requires
.configure() to be called manually in order for options to be
registered.

keystone.config preserves the existing behavior of automatically
registering options when imported.

keystone.middleware.auth_token and it's dependencies within keystone no
longer cause config options to be automatically registered.

This is an alternative to https://review.openstack.org/#/c/24251/

Change-Id: If9eb5799bf77595ecb71f2000f8b6d1610ea9700
This commit is contained in:
Dolph Mathews
2013-03-19 17:15:25 -05:00
parent 5cb8e1f2e5
commit 7db01cd64b
7 changed files with 414 additions and 336 deletions

View File

@@ -26,8 +26,8 @@ import time
import passlib.hash
from keystone.common import config
from keystone.common import logging
from keystone import config
from keystone import exception