@viewer.view('new_post')
@viewer.view('edit_post')
@login_required
def edit_post(post_id=None, post_form=None):
    formats = db_session.query(Format).all()
    statuses = db_session.query(Status).all()
    post = None
    form = None

    if post_id:
        post = get_post(post_id)

    if post_form is None:
        form = PostForm(obj=post)
    else:
        form = post_form

    return viewer.render('edit_post.html',
                         form=form,
                         post=post,
                         formats=formats,
                         statuses=statuses)
Laplacian eigenvalues
dataset/ETHPy150Open jkossen/imposter/admin.py/edit_post--crossover with--dataset/ETHPy150Open networkx/networkx/networkx/linalg/tests/test_spectrum.py/TestSpectrum.test_laplacian_spectrum