def import_dashboard_config(modules):
    """Imports configuration from all the modules and merges it."""
    config = collections.defaultdict(dict)
    for module in modules:
        for key, submodule in import_submodules(module).iteritems():
            try:
                dashboard = submodule.DASHBOARD
            except __HOLE__:
                logging.warning("Skipping %s because it doesn't "
                                "have DASHBOARD defined." % submodule.__name__)
            else:
                config[dashboard].update(submodule.__dict__)
    return sorted(config.iteritems(),
                  key=lambda c: c[1]['__name__'].rsplit('.', 1))
dataset/ETHPy150Open Havate/havate-openstack/proto-build/gui/horizon/Horizon_GUI/openstack_dashboard/utils/settings.py/import_dashboard_config