@chart.route("/new", methods=["GET"])
@chart.route("/edit/<string:chart_id>", methods=["GET"])
@login_required
def new_or_edit(chart_id=None):
    if not chart_id:
        return render_template("chart_edit.jinja",
                               sources=list(current_app.config["source"]))

    else:
        if not can_edit_chart(chart_id):
            abort(http.FORBIDDEN)
        return render_template("chart_edit.jinja", chart_id=chart_id)
Permute the bitarray ba inplace.
dataset/ETHPy150Open eleme/polaris/polaris/views/chart.py/new_or_edit--crossover with--dataset/ETHPy150Open pixelogik/NearPy/nearpy/hashes/permutation/permute.py/Permute.permute