def init(): spatial_dsn = os.environ.get('WOF_SPATIAL_DSN', None) spatial_db = spatial.query(spatial_dsn) search_host = os.environ.get('WOF_SEARCH_HOST', None) search_port = os.environ.get('WOF_SEARCH_PORT', None) search_idx = search.query(host=search_host, port=search_port) flask.g.spatial_db = spatial_db flask.g.search_idx = search_idx
def init(): query_dsn = os.environ.get('WOF_SPATIAL_DSN', None) query_db = spatial.query(query_dsn) flask.g.query_db = query_db