def render_webpage(request, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9): args = request.args temp_args = to_dict(args) if len(args) == 0: #This ensures it's a navigation page if not arg1: # this means we're at the start page info = set_info_for_start_page() return render_template("LfunctionNavigate.html", **info) elif arg1.startswith("degree"): degree = int(arg1[6:]) info = { "degree" : degree } info["key"] = 777 info["bread"] = [('L-functions', url_for("render_Lfunction")), ('Degree '+str(degree), '/L/degree'+str(degree))] if degree == 1: info["contents"] = [LfunctionPlot.getOneGraphHtmlChar(1,35,1,13)] info['friends'] = [('Dirichlet Characters', '/Character/Dirichlet/')] elif degree == 2: info["contents"] = [processEllipticCurveNavigation(args), LfunctionPlot.getOneGraphHtmlHolo(1, 22, 2, 14)] elif degree == 3 or degree == 4: info["contents"] = LfunctionPlot.getAllMaassGraphHtml(degree) return render_template("DegreeNavigateL.html", info=info, title = 'Degree ' + str(degree)+ ' L-functions', bread = info["bread"]) elif arg1 == 'custom': # need a better name return "not yet implemented" try: L = generateLfunctionFromUrl(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, temp_args) except Exception as inst: # There was an exception when creating the page error_message = ('There was an error loading this page. Please report the ' + 'address of this page and the following error message: ' + str(inst.args)) if len(inst.args) >1: if inst.args[1]== "UserError": error_message = inst.args[0] info = { 'content': error_message, 'title': 'Error' } return render_template('LfunctionSimple.html', info=info, **info) try: logger.info(temp_args) if temp_args['download'] == 'lcalcfile': return render_lcalcfile(L, request.url) except: 1 #Do nothing info = initLfunction(L, temp_args, request) return render_template('Lfunction.html', **info)
def l_function_cuspform_browse_page(): info = { "bread": get_bread(2, [("CuspForm", url_for('.l_function_cuspform_browse_page'))]) } info["contents"] = [LfunctionPlot.getOneGraphHtmlHolo(1, 13, 2, 12)] return render_template( "cuspformGL2.html", title= 'L-functions of Cusp Forms on \(\Gamma_0(N)\) with trivial character', **info)
def l_function_cuspform_browse_page(): info = {"bread": get_bread(2, [("CuspForm", url_for('.l_function_cuspform_browse_page'))])} info["contents"] = [LfunctionPlot.getOneGraphHtmlHolo(1, 13, 2, 12)] return render_template("cuspformGL2.html", title='L-functions of Cusp Forms on \(\Gamma_0(N)\) with trivial character', **info)
def l_function_cuspform_browse_page(): info = {"bread": get_bread(2, [("CuspForm", url_for('.l_function_cuspform_browse_page'))])} info["contents"] = [LfunctionPlot.getOneGraphHtmlHolo(1, 13, 2, 12)] return render_template("cuspformGL2.html", title='L-functions of GL(2) Cusp Forms', **info)
def render_webpage(request, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9): args = request.args temp_args = to_dict(args) if len(args) == 0: #This ensures it's a navigation page if not arg1: # this means we're at the start page info = set_info_for_start_page() return render_template("LfunctionNavigate.html", **info) elif arg1.startswith("degree"): degree = int(arg1[6:]) info = {"degree": degree} info["key"] = 777 info["bread"] = [('L-functions', url_for("render_Lfunction")), ('Degree ' + str(degree), '/L/degree' + str(degree))] if degree == 1: info["contents"] = [ LfunctionPlot.getOneGraphHtmlChar(1, 35, 1, 13) ] info['friends'] = [('Dirichlet Characters', '/Character/Dirichlet/')] elif degree == 2: info["contents"] = [ processEllipticCurveNavigation(args), LfunctionPlot.getOneGraphHtmlHolo(1, 22, 2, 14) ] elif degree == 3 or degree == 4: info["contents"] = LfunctionPlot.getAllMaassGraphHtml(degree) return render_template("DegreeNavigateL.html", info=info, title='Degree ' + str(degree) + ' L-functions', bread=info["bread"]) elif arg1 == 'custom': # need a better name return "not yet implemented" try: L = generateLfunctionFromUrl(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, temp_args) except Exception as inst: # There was an exception when creating the page error_message = ( 'There was an error loading this page. Please report the ' + 'address of this page and the following error message: ' + str(inst.args)) if len(inst.args) > 1: if inst.args[1] == "UserError": error_message = inst.args[0] info = {'content': error_message, 'title': 'Error'} return render_template('LfunctionSimple.html', info=info, **info) try: logger.info(temp_args) if temp_args['download'] == 'lcalcfile': return render_lcalcfile(L, request.url) except: 1 #Do nothing info = initLfunction(L, temp_args, request) return render_template('Lfunction.html', **info)