Пример #1
0
def hecke_algebras_render_webpage():
    args = request.args
    if not args:
        weight_list = list(range(2, 20, 2))
        lvl_list_endpoints = [1, 100, 200, 300, 400, 500]
        lvl_list = [
            "%s-%s" % (start, end - 1) for start, end in zip(
                lvl_list_endpoints[:-1], lvl_list_endpoints[1:])
        ]
        favourite_list = ["1.12.1", "139.2.1", "239.2.1", "9.16.1"]
        info = {
            'lvl_list': lvl_list,
            'wt_list': weight_list,
            'favourite_list': favourite_list
        }
        credit = hecke_algebras_credit
        t = 'Hecke algebras'
        bread = [('HeckeAlgebra', url_for(".hecke_algebras_render_webpage"))]
        info['summary'] = hecke_algebras_summary()
        return render_template("hecke_algebras-index.html",
                               info=info,
                               credit=credit,
                               title=t,
                               learnmore=learnmore_list_remove('Completeness'),
                               bread=bread)
    else:
        return hecke_algebras_search(args)
Пример #2
0
def hecke_algebras_render_webpage():
    args = request.args
    if len(args) == 0:
        weight_list= range(2, 20, 2)
        lvl_list_endpoints = [1, 100, 200, 300, 400, 500]
        lvl_list = ["%s-%s" % (start, end - 1) for start, end in zip(lvl_list_endpoints[:-1], lvl_list_endpoints[1:])]
        favourite_list = ["1.12.1","139.2.1","239.2.1","9.16.1"]
        info = {'lvl_list': lvl_list,'wt_list': weight_list, 'favourite_list': favourite_list}
        credit = hecke_algebras_credit
        t = 'Hecke Algebras'
        bread = [('HeckeAlgebra', url_for(".hecke_algebras_render_webpage"))]
        info['summary'] = hecke_algebras_summary()
        return render_template("hecke_algebras-index.html", info=info, credit=credit, title=t, learnmore=learnmore_list_remove('Completeness'), bread=bread)
    else:
        return hecke_algebras_search(args)