def index():
    """ Displays the index page.
    """
    products = mmlib.get_products(SESSION)
    arches = mmlib.get_arches(SESSION)
    arches_name = [arch.name for arch in arches]

    return flask.render_template(
        'index.html',
        products=products,
        arches=arches_name,
    )
Exemple #2
0
def index():
    """ Displays the index page.
    """
    products = mmlib.get_products(SESSION)
    arches = mmlib.get_arches(SESSION)
    arches_name = [arch.name for arch in arches]

    return flask.render_template(
        'index.html',
        products=products,
        arches=arches_name,
    )
Exemple #3
0
def index():
    """ Displays the index page.
    """
    # publiclist=True filters out all results which have
    # publiclist set to False
    products = mmlib.get_products(SESSION, publiclist=True)
    arches = mmlib.get_arches(SESSION, publiclist=True)
    arches_name = [arch.name for arch in arches]

    return flask.render_template(
        'index.html',
        products=products,
        arches=arches_name,
    )
Exemple #4
0
def index():
    """ Displays the index page.
    """
    # publiclist=True filters out all results which have
    # publiclist set to False
    products = mmlib.get_products(SESSION, publiclist=True)
    arches = mmlib.get_arches(SESSION, publiclist=True)
    arches_name = [arch.name for arch in arches]

    return flask.render_template(
        'index.html',
        products=products,
        arches=arches_name,
    )