Beispiel #1
0
def display(id):
    obj = HealthVis.get_by_id(id)
    if obj is None:
        return render_template("500.html")

    form = generate_form(obj)
    if obj.type not in supported_types:
        return render_template("500.html")

    return render_template("base.html", obj=obj, form=form)
Beispiel #2
0
def display(id):
    obj = HealthVis.get_by_id(id)
    if obj is None:
        return render_template("500.html")

    form = generate_form(obj)
    if obj.type not in supported_types:
        return render_template("500.html")

    return render_template("base.html", obj=obj, form=form)
Beispiel #3
0
def display(id):
    obj = find_object(id)
    if obj is None:
        return render_template("500.html")
    form = generate_form(obj)

    # TODO: remove this check from local version
    if obj.type not in supported_types:
        return render_template("500.html")

    return render_template("display.html", obj=obj, form=form, plot_id=id)
Beispiel #4
0
def make_display(plotid, requestargs, template):
    obj = find_object(plotid)
    if obj is None:
        return render_template("500.html")

    # TODO: remove this check from local version
    if obj.type not in supported_types:
        return render_template("500.html")

    form = generate_form(obj, requestargs)
    return render_template(template, obj=obj, form=form, plot_id=plotid)
Beispiel #5
0
def embed(id):
    obj = find_object(id)
    if obj is None:
        return render_template("500.html")
    form = generate_form(obj)

    # TODO: remove this check from local version
    if obj.type not in supported_types:
        return render_template("500.html")

    return render_template("embed.html", obj=obj, form=form, plot_id=id)
Beispiel #6
0
def make_display(plotid, requestargs, template):
    obj = find_object(plotid)
    if obj is None:
        return render_template("500.html")

    # TODO: remove this check from local version
    if obj.type not in supported_types:
        return render_template("500.html")

    form = generate_form(obj, requestargs)
    return render_template(template, obj=obj, form=form, plot_id=plotid)