def actions():
global flash
node_name = request.args.get('node_name')
if node_name:
form = AddForm(obj = get_node_values(node_name))
check = True
return render_template('actions.html', form = form)
form = AddForm()
if request.method == 'POST' and form.validate_on_submit():
operator = form.operator_name.data.lower()
db_values = models.node(operator_name = operator, node_name = node,\
node_id = nod_id)
current_page = request.form['current_page']
if check:
flash(change_value_in_db(db_value))
return redirect(url_for('actions'))