Beispiel #1
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

lattice_page = Blueprint("lattice", __name__, template_folder='templates', static_folder="static")
lattice_logger = make_logger(lattice_page)


@lattice_page.context_processor
def body_class():
    return {'body_class': 'lattice'}

import main
assert main

app.register_blueprint(lattice_page, url_prefix="/Lattice")
Beispiel #2
0
from lmfdb.app import app

import main
import zeta.zetazeros
import first.firstzeros
app.register_blueprint(main.mod, url_prefix="/zeros")
app.register_blueprint(zeta.zetazeros.ZetaZeros, url_prefix="/zeros/zeta")
app.register_blueprint(first.firstzeros.FirstZeros, url_prefix="/zeros/first")
Beispiel #3
0
from __future__ import absolute_import
from lmfdb.app import app

from . import main
from .zeta import zetazeros
from .first import firstzeros
app.register_blueprint(main.mod, url_prefix="/zeros")
app.register_blueprint(zetazeros.ZetaZeros, url_prefix="/zeros/zeta")
app.register_blueprint(firstzeros.FirstZeros, url_prefix="/zeros/first")
Beispiel #4
0
# -*- coding: utf-8 -*-

from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

hiwf_page = Blueprint("hiwf",
                      __name__,
                      template_folder='templates',
                      static_folder="static")
hiwf_logger = make_logger(hiwf_page)


@hiwf_page.context_processor
def body_class():
    return {'body_class': 'hiwf'}


from . import half_integral_form
assert half_integral_form

app.register_blueprint(hiwf_page,
                       url_prefix="/ModularForm/GL2/Q/holomorphic/half")
Beispiel #5
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

belyi_page = Blueprint("belyi", __name__, template_folder='templates',
        static_folder="static")
belyi_logger = make_logger(belyi_page)

@belyi_page.context_processor
def body_class():
    return {'body_class': 'belyi'}

import main
assert main # silence pyflakes

app.register_blueprint(belyi_page, url_prefix="/Belyi")
Beispiel #6
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

motive_page = Blueprint("motive",
                        __name__,
                        template_folder='templates',
                        static_folder="static")
motive_logger = make_logger(motive_page)


@motive_page.context_processor
def body_class():
    return {'body_class': 'motive'}


import main
assert main  # silence pyflakes

app.register_blueprint(motive_page, url_prefix="/Motive")
Beispiel #7
0
# -*- coding: utf-8 -*-

from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

bmf_page = Blueprint("bmf",
                     __name__,
                     template_folder='templates',
                     static_folder="static")
bmf_logger = make_logger(bmf_page)


@bmf_page.context_processor
def body_class():
    return {'body_class': 'bmf'}


from . import bianchi_modular_form
assert bianchi_modular_form

app.register_blueprint(bmf_page,
                       url_prefix="/ModularForm/GL2/ImaginaryQuadratic")
Beispiel #8
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from flask import Blueprint

st_page = Blueprint("st", __name__, template_folder='templates', static_folder="static")

@st_page.context_processor
def body_class():
    return {'body_class': 'st'}

import main

assert main # silence pyflakes

app.register_blueprint(st_page, url_prefix="/SatoTateGroup")
Beispiel #9
0
# / modular_forms/__init__.py

import flask

from lmfdb.logger import make_logger
from lmfdb.app import app

MF_TOP = "Modular Forms"
MF = "mf"
mf = flask.Blueprint(MF, __name__, template_folder="views/templates", static_folder="views/static")
mf_logger = make_logger(mf)

import maass_forms
assert maass_forms
import views
assert views

app.register_blueprint(mf, url_prefix="/ModularForm/")
app.register_blueprint(mf, url_prefix="/AutomorphicForm/")
app.register_blueprint(maass_forms.maassf, url_prefix="/ModularForm/Maass")
app.register_blueprint(maass_forms.maass_waveforms.mwf, url_prefix="/ModularForm/GL2/Q/Maass")
app.register_blueprint(maass_forms.picard.mwfp, url_prefix="/ModularForm/GL2/C/Maass")
Beispiel #10
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

ecnf_page = Blueprint("ecnf", __name__, template_folder='templates', static_folder="static")
logger = make_logger(ecnf_page)


@ecnf_page.context_processor
def body_class():
    return {'body_class': 'ecnf'}

import main
assert main # to keep pyflakes quiet

app.register_blueprint(ecnf_page, url_prefix="/EllipticCurve")
Beispiel #11
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

hypergm_page = Blueprint("hypergm", __name__, template_folder='templates', static_folder="static")
hgm_logger = make_logger(hypergm_page)


@hypergm_page.context_processor
def body_class():
    return {'body_class': 'hypergm'}

import main
assert main # silence pyflakes

app.register_blueprint(hypergm_page, url_prefix="/Motive/Hypergeometric/Q")
Beispiel #12
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

characters_page = Blueprint("characters", __name__, template_folder='templates',
    static_folder="static")
logger = make_logger(characters_page)


@characters_page.context_processor
def body_class():
    return {'body_class': 'characters'}

import main
assert main # silence pyflakes

app.register_blueprint(characters_page, url_prefix="/Character")
Beispiel #13
0
from lmfdb.app import app

import main
import stieltjes
app.register_blueprint(main.mod, url_prefix="/riemann")
app.register_blueprint(stieltjes.StieltjesConstants, url_prefix="/riemann/stieltjes")
Beispiel #14
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

local_fields_page = Blueprint("local_fields", __name__, template_folder='templates', static_folder="static")
logger = make_logger(local_fields_page)


@local_fields_page.context_processor
def body_class():
    return {'body_class': 'local_fields'}

import main
assert main

app.register_blueprint(local_fields_page, url_prefix="/LocalNumberField")
Beispiel #15
0
# -*- coding: utf-8 -*-

from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

knowledge_page = Blueprint("knowledge", __name__, template_folder='templates')
logger = make_logger(knowledge_page)

from . import main
assert main

app.register_blueprint(knowledge_page, url_prefix="/knowledge")
Beispiel #16
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

hiwf_page = Blueprint("hiwf", __name__, template_folder='templates', static_folder="static")
hiwf_logger = make_logger(hiwf_page)


@hiwf_page.context_processor
def body_class():
    return {'body_class': 'hiwf'}

import half_integral_form
assert half_integral_form

app.register_blueprint(hiwf_page, url_prefix="/ModularForm/GL2/Q/holomorphic/half")


Beispiel #17
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

crystals_page = Blueprint("crystals", __name__, template_folder='templates', static_folder="static")
logger = make_logger(crystals_page)


@crystals_page.context_processor
def body_class():
    return {'body_class': 'Crystals'}

import main
assert main # silence pyflakes

app.register_blueprint(crystals_page, url_prefix="/Crystals")
Beispiel #18
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

nf_page = Blueprint("number_fields", __name__, template_folder='templates', static_folder="static")
nf_logger = make_logger(nf_page)

@nf_page.context_processor
def body_class():
    return {'body_class': 'nf'}

import number_field
assert number_field

app.register_blueprint(nf_page, url_prefix="/NumberField")
Beispiel #19
0
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint
from lmfdb.api2.searchers import register_search_function

nf_page = Blueprint("number_fields",
                    __name__,
                    template_folder='templates',
                    static_folder="static")
nf_logger = make_logger(nf_page)


@nf_page.context_processor
def body_class():
    return {'body_class': 'nf'}


from . import number_field
assert number_field

app.register_blueprint(nf_page, url_prefix="/NumberField")

register_search_function("number_fields",
                         "Global number fields",
                         "Search over global number fields",
                         auto_search='nf_fields')
Beispiel #20
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

cmf_page = Blueprint("cmf", __name__, template_folder='templates', static_folder="static")
cmf = cmf_page
cmf_logger = make_logger(cmf_page)

import main
assert main # silence pyflakes

app.register_blueprint(cmf_page, url_prefix="/ModularForm/GL2/Q/holomorphic")
Beispiel #21
0
from __future__ import absolute_import
from .main import (login_page, login_manager, admin_required,
                   knowl_reviewer_required, housekeeping, FLASK_LOGIN_VERSION,
                   FLASK_LOGIN_LIMIT)
assert admin_required  # silence pyflakes
assert knowl_reviewer_required  # silence pyflakes
assert housekeeping  # silence pyflakes

from lmfdb.app import app
from lmfdb.logger import make_logger
from distutils.version import StrictVersion

# secret key, necessary for sessions, and sessions are
# in turn necessary for users to login
app.secret_key = '9af"]ßÄ!_°$2ha€42~µ…010'

login_manager.init_app(app)

app.register_blueprint(login_page, url_prefix="/users")

users_logger = make_logger("users", hl=True)

if StrictVersion(FLASK_LOGIN_VERSION) < StrictVersion(FLASK_LOGIN_LIMIT):
    users_logger.warning(
        "DEPRECATION-WARNING: "
        "flask-login is older than version {version}. "
        "Versions older than {version} have different functionality and may "
        "stop working in the future. "
        "Consider updating, perhaps through "
        "`sage -pip install flask-login`.".format(version=FLASK_LOGIN_LIMIT))
Beispiel #22
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

permutations_page = Blueprint("permutations", __name__, template_folder='templates', static_folder="static")
logger = make_logger(permutations_page)


@permutations_page.context_processor
def body_class():
    return {'body_class': 'Permutations'}

import main
assert main

app.register_blueprint(permutations_page, url_prefix="/Permutations")
Beispiel #23
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

hecke_algebras_page = Blueprint("hecke_algebras",
                                __name__,
                                template_folder='templates',
                                static_folder="static")
hecke_algebras_logger = make_logger(hecke_algebras_page)


@hecke_algebras_page.context_processor
def body_class():
    return {'body_class': 'hecke_algebras'}


import main
assert main

app.register_blueprint(hecke_algebras_page,
                       url_prefix="/ModularForm/GL2/Q/HeckeAlgebra")
Beispiel #24
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

galois_groups_page = Blueprint("galois_groups", __name__, template_folder='templates', static_folder="static")
logger = make_logger(galois_groups_page)


@galois_groups_page.context_processor
def body_class():
    return {'body_class': 'galois_groups'}

import main
assert main

app.register_blueprint(galois_groups_page, url_prefix="/GaloisGroup")
Beispiel #25
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

higher_genus_w_automorphisms_page = Blueprint("higher_genus_w_automorphisms",
                                       __name__, template_folder='templates',
                                       static_folder="static")
logger = make_logger(higher_genus_w_automorphisms_page)


@higher_genus_w_automorphisms_page.context_processor
def body_class():
    return {'body_class': 'higher_genus_w_automorphisms'}

import main
assert main # silence pyflakes

app.register_blueprint(higher_genus_w_automorphisms_page, url_prefix="/HigherGenus/C/Aut")


Beispiel #26
0
from lmfdb.logger import make_logger
from flask import Blueprint
from lmfdb.api2.searchers import register_search_function

characters_page = Blueprint("characters", __name__, template_folder='templates',
    static_folder="static")
logger = make_logger(characters_page)


@characters_page.context_processor
def body_class():
    return {'body_class': 'characters'}

import main
assert main # silence pyflakes

app.register_blueprint(characters_page, url_prefix="/Character")

register_search_function(
    "char_dirichlet_orbits",
    "Orbits of Dirichlet characters",
    "Search over orbits of Dirichlet characters",
    auto_search = 'char_dir_orbits'
)
register_search_function(
    "char_dirichlet_values",
    "Individual Dirichlet characters",
    "Search over individual Dirichlet characters",
    auto_search = 'char_dir_values'
)
Beispiel #27
0
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

abvarfq_page = Blueprint("abvarfq",
                         __name__,
                         template_folder="templates",
                         static_folder="static")
abvarfq_logger = make_logger(abvarfq_page)


@abvarfq_page.context_processor
def body_class():
    return {"body_class": "abvarfq"}


from . import main
assert main

app.register_blueprint(abvarfq_page, url_prefix="/Variety/Abelian/Fq")
Beispiel #28
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

artin_representations_page = Blueprint(
    "artin_representations", __name__, template_folder='templates', static_folder="static")
artin_logger = make_logger("artin", hl=True)

# artin_logger.info("Initializing Artin representations blueprint")


@artin_representations_page.context_processor
def body_class():
    return {'body_class': 'artin_representations'}

import main
assert main # silence pyflakes

app.register_blueprint(artin_representations_page, url_prefix="/ArtinRepresentation")
Beispiel #29
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

knowledge_page = Blueprint("knowledge", __name__, template_folder='templates')
logger = make_logger(knowledge_page)

import main
assert main

app.register_blueprint(knowledge_page, url_prefix="/knowledge")
Beispiel #30
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint
from lmfdb.api2.searchers import register_search_function

galois_groups_page = Blueprint("galois_groups",
                               __name__,
                               template_folder='templates',
                               static_folder="static")
logger = make_logger(galois_groups_page)


@galois_groups_page.context_processor
def body_class():
    return {'body_class': 'galois_groups'}


import main
assert main

app.register_blueprint(galois_groups_page, url_prefix="/GaloisGroup")

register_search_function("transitive_groups",
                         "Galois groups",
                         "Search over Galois groups",
                         auto_search='gps_transitive')
Beispiel #31
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

l_function_page = Blueprint("l_functions", __name__, template_folder='templates', static_folder="static")
logger = make_logger("LF")


@l_function_page.context_processor
def body_class():
    return {'body_class': 'l_functions'}

import main
assert main # silence pyflakes

app.register_blueprint(l_function_page, url_prefix="/L")

Beispiel #32
0
from __future__ import absolute_import
from lmfdb.app import app

from . import main
from . import stieltjes
app.register_blueprint(main.mod, url_prefix="/riemann")
app.register_blueprint(stieltjes.StieltjesConstants,
                       url_prefix="/riemann/stieltjes")
Beispiel #33
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

groups_page = Blueprint("groups",
                        __name__,
                        template_folder='templates',
                        static_folder="static")
groups = groups_page
groups_logger = make_logger(groups_page)

app.register_blueprint(groups_page, url_prefix="/Groups")
Beispiel #34
0
# -*- coding: utf8 -*-

from lmfdb.app import app

import main
app.register_blueprint(main.mod, url_prefix="/LfunctionDB")
Beispiel #35
0
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

cmf_page = Blueprint("cmf",
                     __name__,
                     template_folder='templates',
                     static_folder="static")
cmf = cmf_page
cmf_logger = make_logger(cmf_page)

from . import main
assert main  # silence pyflakes

app.register_blueprint(cmf_page, url_prefix="/ModularForm/GL2/Q/holomorphic")
Beispiel #36
0
# -*- coding: utf-8 -*-

from lmfdb.app import app
assert app  # keeps pyflakes happy
from lmfdb.logger import make_logger
assert make_logger  # keeps pyflakes happy
from flask import Blueprint

__version__ = "1.0.0"

api2_page = Blueprint("API2",
                      __name__,
                      template_folder='templates',
                      static_folder="static")

from . import api2
assert api2

app.register_blueprint(api2_page, url_prefix="/api2")
Beispiel #37
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

api_page = Blueprint("API", __name__, template_folder='templates', static_folder="static")
api_logger = make_logger(api_page)

@api_page.context_processor
def body_class():
    return {'body_class': 'api'}

import api
assert api # silence pyflakes

app.register_blueprint(api_page, url_prefix="/api")
Beispiel #38
0
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

lattice_page = Blueprint("lattice",
                         __name__,
                         template_folder='templates',
                         static_folder="static")
lattice_logger = make_logger(lattice_page)


@lattice_page.context_processor
def body_class():
    return {'body_class': 'lattice'}


from . import main
assert main

app.register_blueprint(lattice_page, url_prefix="/Lattice")
Beispiel #39
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

tensor_products_page = Blueprint("tensor_products",
                                 __name__,
                                 template_folder='templates',
                                 static_folder="static")
tensor_products_logger = make_logger("tensor_products", hl=True)


@tensor_products_page.context_processor
def body_class():
    return {'body_class': 'tensor_products'}


import main
assert main  #silence pyflakes

app.register_blueprint(tensor_products_page, url_prefix="/TensorProducts")
Beispiel #40
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

rep_galois_modl_page = Blueprint("rep_galois_modl", __name__, template_folder='templates', static_folder="static")
rep_galois_modl_logger = make_logger(rep_galois_modl_page)


@rep_galois_modl_page.context_processor
def body_class():
    return {'body_class': 'rep_galois_modl'}

import main
assert main #silence pyflakes

app.register_blueprint(rep_galois_modl_page, url_prefix="/Representation/Galois/ModL")
Beispiel #41
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from flask import Blueprint

st_page = Blueprint("st",
                    __name__,
                    template_folder='templates',
                    static_folder="static")


@st_page.context_processor
def body_class():
    return {'body_class': 'st'}


import main

assert main  # silence pyflakes

app.register_blueprint(st_page, url_prefix="/SatoTateGroup")
Beispiel #42
0
from main import (login_page, login_manager, admin_required, knowl_reviewer_required,
                  housekeeping, FLASK_LOGIN_VERSION, FLASK_LOGIN_LIMIT)
assert admin_required  # silence pyflakes
assert knowl_reviewer_required  # silence pyflakes
assert housekeeping  # silence pyflakes

from lmfdb.app import app
from lmfdb.logger import make_logger
from distutils.version import StrictVersion


# secret key, necessary for sessions, and sessions are
# in turn necessary for users to login
app.secret_key = '9af"]ßÄ!_°$2ha€42~µ…010'

login_manager.init_app(app)

app.register_blueprint(login_page, url_prefix="/users")

users_logger = make_logger("users", hl=True)

if StrictVersion(FLASK_LOGIN_VERSION) < StrictVersion(FLASK_LOGIN_LIMIT):
    users_logger.warning(
        "DEPRECATION-WARNING: "
        "flask-login is older than version {version}. "
        "Versions older than {version} have different functionality and may "
        "stop working in the future. "
        "Consider updating, perhaps through "
        "`sage -pip install flask-login`.".format(version=FLASK_LOGIN_LIMIT))
Beispiel #43
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

belyi_page = Blueprint("belyi",
                       __name__,
                       template_folder='templates',
                       static_folder="static")
belyi_logger = make_logger(belyi_page)


@belyi_page.context_processor
def body_class():
    return {'body_class': 'belyi'}


import main
assert main  # silence pyflakes

app.register_blueprint(belyi_page, url_prefix="/Belyi")
Beispiel #44
0
from lmfdb.app import app

import inventory_app
app.register_blueprint(inventory_app.inventory_app, url_prefix = inventory_app.url_pref)
Beispiel #45
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint
from lmfdb.api2.searchers import register_search_function, register_singleton
import searchers

ec_page = Blueprint("ec", __name__, template_folder='templates', static_folder="static")
ec_logger = make_logger(ec_page)
#ec_logger.info("Initializing elliptic curves blueprint")


@ec_page.context_processor
def body_class():
    return {'body_class': 'ec'}

import elliptic_curve
assert elliptic_curve # for pyflakes

app.register_blueprint(ec_page, url_prefix="/EllipticCurve/Q")

register_search_function("elliptic_curves_q", "Elliptic Curves over Rationals",
    "Search over elliptic curves defined over rationals", auto_search = 'ec_curves')
register_singleton('EllipticCurve/Q', 'ec_curves',
    simple_search = searchers.ec_simple_label_search)
Beispiel #46
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

smf_page = Blueprint('smf', __name__,
                     template_folder='templates', static_folder='static')
smf_logger = make_logger(smf_page)


@smf_page.context_processor
def body_class():
    return {'body_class': 'smf'}

import siegel_modular_form
assert siegel_modular_form #silence pyflakes

app.register_blueprint(smf_page, url_prefix='/ModularForm/GSp/Q')
Beispiel #47
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

g2c_page = Blueprint("g2c", __name__, template_folder='templates',
        static_folder="static")
g2c_logger = make_logger(g2c_page)

@g2c_page.context_processor
def body_class():
    return {'body_class': 'g2c'}

import main
assert main # silence pyflakes

app.register_blueprint(g2c_page, url_prefix="/Genus2Curve")
Beispiel #48
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

tensor_products_page = Blueprint(
    "tensor_products", __name__, template_folder='templates', static_folder="static")
tensor_products_logger = make_logger("tensor_products", hl=True)

@tensor_products_page.context_processor
def body_class():
    return {'body_class': 'tensor_products'}

import main
assert main #silence pyflakes

app.register_blueprint(tensor_products_page, url_prefix="/TensorProducts")
Beispiel #49
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

abvar_page = Blueprint("abvar", __name__, template_folder='templates', static_folder="static")
abvar_logger = make_logger(abvar_page)


@abvar_page.context_processor
def body_class():
    return {'body_class': 'abvar'}

app.register_blueprint(abvar_page, url_prefix="/Variety/Abelian")
Beispiel #50
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

hmf_page = Blueprint("hmf", __name__, template_folder='templates', static_folder="static")
hmf_logger = make_logger(hmf_page)


@hmf_page.context_processor
def body_class():
    return {'body_class': 'hmf'}

import hilbert_modular_form
assert hilbert_modular_form

app.register_blueprint(hmf_page, url_prefix="/ModularForm/GL2/TotallyReal")
Beispiel #51
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint
from lmfdb.api2.searchers import register_search_function

local_fields_page = Blueprint("local_fields",
                              __name__,
                              template_folder='templates',
                              static_folder="static")
logger = make_logger(local_fields_page)


@local_fields_page.context_processor
def body_class():
    return {'body_class': 'local_fields'}


import main
assert main

app.register_blueprint(local_fields_page, url_prefix="/LocalNumberField")

register_search_function("local_fields",
                         "Local number fields",
                         "Search over local number fields",
                         auto_search='lf_fields')
Beispiel #52
0
from __future__ import absolute_import
# / modular_forms/__init__.py

import flask

from lmfdb.logger import make_logger
from lmfdb.app import app

MF_TOP = "Modular Forms"
MF = "mf"
mf = flask.Blueprint(MF, __name__, template_folder="views/templates")
mf_logger = make_logger(mf)

from . import maass_forms
assert maass_forms
from . import views
assert views

app.register_blueprint(mf, url_prefix="/ModularForm/")
# app.register_blueprint(maass_forms.maassf, url_prefix="/ModularForm/Maass")
app.register_blueprint(maass_forms.maass_waveforms.mwf, url_prefix="/ModularForm/GL2/Q/Maass")
# app.register_blueprint(maass_forms.picard.mwfp, url_prefix="/ModularForm/GL2/C/Maass")
Beispiel #53
0
# -*- coding: utf-8 -*-

from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

maass_page = Blueprint("maass", __name__, template_folder='templates')
logger = make_logger(maass_page)


@maass_page.context_processor
def body_class():
    return {'body_class': 'maass'}


from . import main
assert main  # silence pyflakes

app.register_blueprint(maass_page, url_prefix="/ModularForm/GL2/Q/Maass")

# API2 has been disabled for now
#from lmfdb.api2.searchers import register_search_function
#register_search_function(
#    "gl2_maass_forms",
#    "GL2 Maass forms",
#    "Search over GL2 Maass forms",
#    auto_search = 'maass_newforms'
#)
Beispiel #54
0
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

hmf_page = Blueprint("hmf", __name__, template_folder='templates', static_folder="static")
hmf_logger = make_logger(hmf_page)


@hmf_page.context_processor
def body_class():
    return {'body_class': 'hmf'}

from . import hilbert_modular_form
assert hilbert_modular_form

app.register_blueprint(hmf_page, url_prefix="/ModularForm/GL2/TotallyReal")
Beispiel #55
0
# -*- coding: utf-8 -*-

from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

modlmf_page = Blueprint("modlmf",
                        __name__,
                        template_folder='templates',
                        static_folder="static")
modlmf_logger = make_logger(modlmf_page)


@modlmf_page.context_processor
def body_class():
    return {'body_class': 'modlmf'}


from . import main
assert main

app.register_blueprint(modlmf_page, url_prefix="/ModularForm/GL2/ModL")
Beispiel #56
0
# -*- coding: utf-8 -*-

from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

permutations_page = Blueprint("permutations", __name__, template_folder='templates', static_folder="static")
logger = make_logger(permutations_page)


@permutations_page.context_processor
def body_class():
    return {'body_class': 'Permutations'}

from . import main
assert main

app.register_blueprint(permutations_page, url_prefix="/Permutations")
Beispiel #57
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint
from lmfdb.api2.searchers import register_search_function

higher_genus_w_automorphisms_page = Blueprint("higher_genus_w_automorphisms",
                                       __name__, template_folder='templates',
                                       static_folder="static")
logger = make_logger(higher_genus_w_automorphisms_page)


@higher_genus_w_automorphisms_page.context_processor
def body_class():
    return {'body_class': 'higher_genus_w_automorphisms'}

import main
assert main # silence pyflakes

app.register_blueprint(higher_genus_w_automorphisms_page, url_prefix="/HigherGenus/C/Aut")

register_search_function(
    "group_actions_higher_genus_curves",
    "Group actions on higher genus curves",
    "Search over group actions on higher genus curves",
    auto_search = 'hgcwa_passports'
)
Beispiel #58
0
# -*- coding: utf-8 -*-
from lmfdb.app import app
from lmfdb.logger import make_logger
from flask import Blueprint

motive_page = Blueprint("motive", __name__, template_folder='templates', static_folder="static")
motive_logger = make_logger(motive_page)


@motive_page.context_processor
def body_class():
    return {'body_class': 'motive'}

import main
assert main # silence pyflakes

app.register_blueprint(motive_page, url_prefix="/Motive")