# Path: regenesis/core.py
# def get_catalog(catalog_name):
# 
# Path: regenesis/views/util.py
# def dimension_type_text(type_name):
#     if type_name.startswith('ZI-MM'):
#         return 'Zeitattribut'
#     if type_name.startswith('K-REG'):
#         return 'Geographisches Attribut'
#     if type_name.startswith('K-SACH'):
#         return 'Sachattribut'
#     if type_name.startswith('W-MM'):
#         return 'Messwert'
#     return type_name
# 
# Path: regenesis/database.py
# def get_fact_table(cube_name):
# def load_cube(cube, update=False):


from flask import Blueprint, render_template
from regenesis.core import app, engine, get_catalog
from regenesis.views.util import dimension_type_text
from regenesis.database import statistic_table, dimension_table


blueprint = Blueprint('catalog', __name__)


@blueprint.route('/<catalog>/index.html')
def view(catalog):

# Path: regenesis/core.py
# def get_catalog(catalog_name):
# 
# Path: regenesis/views/util.py
# def dimension_type_text(type_name):
#     if type_name.startswith('ZI-MM'):
#         return 'Zeitattribut'
#     if type_name.startswith('K-REG'):
#         return 'Geographisches Attribut'
#     if type_name.startswith('K-SACH'):
#         return 'Sachattribut'
#     if type_name.startswith('W-MM'):
#         return 'Messwert'
#     return type_name
# 
# Path: regenesis/database.py
# def get_fact_table(cube_name):
# def load_cube(cube, update=False):


# Path: regenesis/views/catalog.py
from flask import Blueprint, render_template
from regenesis.core import app, engine, get_catalog
from regenesis.views.util import dimension_type_text
from regenesis.database import statistic_table, dimension_table



blueprint = Blueprint('catalog', __name__)


@blueprint.route('/<catalog>/index.html')
def view(catalog):

    catalog = get_catalog(catalog)