@bp.route('/pathinfo')
def get_path_info():
    tree_item = g.admin_context.tree.get(request.args['path'])
    segments = []

    while tree_item is not None:
        segments.append({
            'id': tree_item.id,
            'path': tree_item.path,
            'label_i18n': tree_item.label_i18n,
            'exists': tree_item.exists,
            'can_have_children': tree_item.can_have_children
        })
        tree_item = tree_item.get_parent()

    segments.reverse()
    return jsonify(segments=segments)
decrypt a tally given decryption factors
dataset/ETHPy150Open lektor/lektor/lektor/admin/modules/api.py/get_path_info--crossover with--dataset/ETHPy150Open benadida/helios-server/helios/workflows/homomorphic.py/Tally.decrypt_from_factors