import nose.exc from paste import deploy import stubout import testtools from keystone.openstack.common import gettextutils # NOTE(blk-u): # gettextutils.install() must run to set _ before importing any modules that # contain static translated strings. # # Configure gettextutils for deferred translation of messages # so that error messages in responses can be translated according to the # Accept-Language in the request rather than the Keystone server locale. gettextutils.install('keystone', lazy=True) from keystone.common import environment environment.use_eventlet() from keystone import assignment from keystone import catalog from keystone.common import cache from keystone.common import dependency from keystone.common import kvs from keystone.common import sql from keystone.common import utils from keystone.common import wsgi from keystone import config from keystone.contrib import endpoint_filter
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. import logging import os from paste import deploy from keystone.openstack.common import gettextutils # NOTE(blk-u): # gettextutils.install() must run to set _ before importing any modules that # contain static translated strings. gettextutils.install('keystone') from keystone.common import environment from keystone.common import sql from keystone import config from keystone.openstack.common import log from keystone import service CONF = config.CONF sql.initialize() CONF(project='keystone') config.setup_logging()
# Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. import logging import sys from oslo.config import cfg from wsgiref import simple_server from keystone.openstack.common import gettextutils PROJECT = 'kds' gettextutils.install(PROJECT, lazy=True) from keystone.contrib.kds.api import app from keystone.contrib.kds.common import service from keystone.openstack.common import log CONF = cfg.CONF class Application(object): def __init__(self): self.app = app.setup_app() def __call__(self, environ, start_response): return self.app(environ, start_response)
# c3b92295b718a41c3136876eb39297081015a97c/httpd/keystone.py # It's only required for platforms on which it is not packaged yet. # It should be removed when available everywhere in a package. # import logging import os from paste import deploy from keystone.openstack.common import gettextutils # NOTE(blk-u): # gettextutils.install() must run to set _ before importing any modules that # contain static translated strings. gettextutils.install('keystone') from keystone.common import environment from keystone import config from keystone.openstack.common import log CONF = config.CONF CONF(project='keystone') config.setup_logging(CONF) environment.use_stdlib() name = os.path.basename(__file__) if CONF.debug: CONF.log_opt_values(log.getLogger(CONF.prog), logging.DEBUG)
import six import testtools from testtools import testcase import webob from keystone.openstack.common.fixture import mockpatch from keystone.openstack.common import gettextutils # NOTE(blk-u): # gettextutils.install() must run to set _ before importing any modules that # contain static translated strings. # # Configure gettextutils for deferred translation of messages # so that error messages in responses can be translated according to the # Accept-Language in the request rather than the Keystone server locale. gettextutils.install('keystone', lazy=True) # NOTE(ayoung) # environment.use_eventlet must run before any of the code that will # call the eventlet monkeypatching. from keystone.common import environment environment.use_eventlet() from keystone import auth from keystone.common import dependency from keystone.common import kvs from keystone.common.kvs import core as kvs_core from keystone.common import sql from keystone.common.sql import migration_helpers from keystone.common import utils as common_utils from keystone import config
import logging from paste import deploy import testtools from testtools import testcase from keystone.openstack.common import gettextutils # NOTE(blk-u): # gettextutils.install() must run to set _ before importing any modules that # contain static translated strings. # # Configure gettextutils for deferred translation of messages # so that error messages in responses can be translated according to the # Accept-Language in the request rather than the Keystone server locale. gettextutils.install("keystone", lazy=True) from keystone.common import cache from keystone.common import dependency from keystone.common import environment from keystone.common import kvs from keystone.common.kvs import core as kvs_core from keystone.common import sql from keystone.common import utils from keystone.common import wsgi from keystone import config from keystone import exception from keystone.openstack.common.db.sqlalchemy import session from keystone.openstack.common import log from keystone.openstack.common import timeutils from keystone import service
# Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. import logging import sys from oslo.config import cfg from wsgiref import simple_server from keystone.openstack.common import gettextutils PROJECT = "kds" gettextutils.install(PROJECT) from keystone.contrib.kds.api import app from keystone.contrib.kds.common import service from keystone.openstack.common import log CONF = cfg.CONF class Application(object): def __init__(self): self.app = app.setup_app() def __call__(self, environ, start_response): return self.app(environ, start_response)
import os from keystone.openstack.common.gettextutils import install install('keystone', True) from paste import deploy from keystone.openstack.common import log as logging from keystone import config LOG = logging.getLogger(__name__) CONF = config.CONF config_files = ['/etc/keystone/keystone.conf'] CONF(project='keystone', default_config_files=config_files) config.setup_logging(CONF) conf = CONF.config_file[0] name = os.path.basename(__file__) if CONF.debug: CONF.log_opt_values(logging.getLogger(CONF.prog), logging.DEBUG) options = deploy.appconfig('config:%s' % CONF.config_file[0]) application = deploy.loadapp('config:%s' % conf, name=name)
import argparse import imp import os import re import socket import sys import textwrap from oslo.config import cfg import six import stevedore.named from keystone.openstack.common import gettextutils from keystone.openstack.common import importutils gettextutils.install("keystone") STROPT = "StrOpt" BOOLOPT = "BoolOpt" INTOPT = "IntOpt" FLOATOPT = "FloatOpt" LISTOPT = "ListOpt" DICTOPT = "DictOpt" MULTISTROPT = "MultiStrOpt" OPT_TYPES = { STROPT: "string value", BOOLOPT: "boolean value", INTOPT: "integer value", FLOATOPT: "floating point value", LISTOPT: "list value",