示例#1
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,
    )
示例#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,
    )
示例#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,
    )
示例#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,
    )