

def load(info):
    minerva_mako = os.path.join(os.path.dirname(__file__), 'minerva.mako')
    minerva_webroot = Webroot(minerva_mako)
    minerva_webroot.updateHtmlVars(info['serverRoot'].vars)
    minerva_webroot.updateHtmlVars({
        'title': 'Minerva',
    })
    (info['serverRoot'], info['serverRoot'].girder) = (minerva_webroot, info['serverRoot'])
    info['serverRoot'].api = info['serverRoot'].girder.api
    info['apiRoot'].geonames = geocodeREST = geocode.Geonames()
    info['apiRoot'].geonames.route('POST', ('setup',), geocodeREST.setup)
    info['apiRoot'].geonames.route('GET', ('geocode',), geocodeREST.geocode)
    events.bind('model.setting.validate', 'minerva', validate_settings)
    info['apiRoot'].minerva_dataset = dataset.Dataset()
    info['apiRoot'].minerva_analysis = analysis.Analysis()
    info['apiRoot'].minerva_session = session.Session()
    info['apiRoot'].minerva_dataset_s3 = s3_dataset.S3Dataset()
    info['apiRoot'].minerva_source = source.Source()
    info['apiRoot'].minerva_source_wms = wms_source.WmsSource()
    info['apiRoot'].minerva_source_s3 = s3_source.S3Source()
    info['apiRoot'].minerva_dataset_wms = wms_dataset.WmsDataset()
    info['apiRoot'].minerva_dataset_geojson = geojson_dataset.GeojsonDataset()
    info['apiRoot'].minerva_source_elasticsearch = elasticsearch_source.ElasticsearchSource()
    info['apiRoot'].minerva_query_elasticsearch = elasticsearch_source.ElasticsearchQuery()
    info['apiRoot'].minerva_source_postgres = postgres_source.PostgresSource()
    info['apiRoot'].minerva_source_mongo = mongo_source.MongoSource()
    info['apiRoot'].minerva_dataset_mongo = mongo_dataset.MongoDataset()
    info['serverRoot'].wms_proxy = WmsProxy()
    if ('/test' in info['config']):
        info['config']['/src/minerva'] = {
            'tools.staticdir.on': True,
            'tools.staticdir.dir': 'plugins/minerva/web_external',
        }
        info['config']['/test/minerva'] = {
            'tools.staticdir.on': True,
            'tools.staticdir.dir': 'plugins/minerva/plugin_tests/client',
        }

dataset/ETHPy150Open Kitware/minerva/server/loader.py load/original