#    Licensed under the Apache License, Version 2.0 (the "License"); you may
#    not use this file except in compliance with the License. You may obtain
#    a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    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.

from keystone.server.flask.core import *  # noqa
from keystone.server.flask import application  # noqa


__all__ = ('application', 'core', 'fail_gracefully', 'initialize_application',
           'setup_app_middleware')

fail_gracefully = application.fail_gracefully

@@ -570,47 +570,291 @@
 e.%0A%0A
-from keystone.server.flask.core
+# NOTE(morgan): Import relevant stuff so importing individual under-pinnings%0A# isn't needed, keystone.server.flask exposes all the interesting bits%0A# needed to develop restful APIs for keystone.%0A%0Afrom keystone.server.flask import application%0Afrom keystone.server.flask.common
  import 
 *  #
@@ -853,9 +853,15 @@
 ort 
-*
+APIBase
   # 
@@ -887,32 +887,39 @@
 server.flask
+.common
  import 
 application 
@@ -910,144 +910,851 @@
 ort 
-application  # noqa%0A%0A%0A__all__ = ('application', 'core', 'fail_gracefully', 'initialize_application',%0A           'setup_app_middleware')%0A
+base_url  # noqa%0Afrom keystone.server.flask.common import construct_json_home_data  # noqa%0Afrom keystone.server.flask.common import construct_resource_map  # noqa%0Afrom keystone.server.flask.common import full_url  # noqa%0Afrom keystone.server.flask.common import JsonHomeData  # noqa%0Afrom keystone.server.flask.common import ResourceBase  # noqa%0Afrom keystone.server.flask.common import ResourceMap  # noqa%0Afrom keystone.server.flask.core import *  # noqa%0A%0A%0A# NOTE(morgan): This allows for from keystone.flask import * and have all the%0A# cool stuff needed to develop new APIs within a module/subsystem%0A__all__ = ('APIBase', 'JsonHomeData', 'ResourceBase', 'ResourceMap',%0A           'base_url', 'construct_json_home_data', 'construct_resource_map',%0A           'full_url', 'fail_gracefully')%0A%0Aapplication_factory = application.application_factory
 %0Afai

Make keystone.server.flask more interesting for importing