コード例 #1
0
ファイル: views.py プロジェクト: ict-felix/stack
def gui_peers():
    try:
        output = methods.get_peers()
        return render_template(
            "peers.html", db=current_app.db, domain_routing=output)
    except Exception as e:
        return "Error: %s" % str(e)
コード例 #2
0
def gui_peers():
    try:
        output = methods.get_peers()
        return render_template("peers.html",
                               db=current_app.db,
                               domain_routing=output)
    except Exception as e:
        return "Error: %s" % str(e)
コード例 #3
0
def db_peers():
    try:
        output = methods.get_peers()
        return methods.parse_output_json(output)
    except Exception as e:
        return "Error: %s" % str(e)
コード例 #4
0
ファイル: views.py プロジェクト: HalasNet/felix
def db_peers():
    try:
        output = methods.get_peers()
        return methods.parse_output_json(output)
    except Exception as e:
        return "Error: %s" % str(e)