コード例 #1
0
def add_new_form():
    form_id = request.form['form_id']
    return render_template("form_template.html",
            form_id=form_id,
            camera=Camera.with_form_id(form_id),
            pillar=Pillar.with_form_id(form_id),
            mount=Mount.with_form_id(form_id),
            focuser=Focuser.with_form_id(form_id),
            telescope=Telescope.with_form_id(form_id)
            )