コード例 #1
0
ファイル: __init__.py プロジェクト: yumsuresht/mirrormanager2
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
ファイル: app.py プロジェクト: TroJan/mirrormanager2
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
ファイル: app.py プロジェクト: Flig/mirrormanager2
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
ファイル: app.py プロジェクト: fedora-infra/mirrormanager2
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,
    )