def pool_management(): pool_object_form = PoolObjectsForm(request.form) pool_object_form.devices.choices = Device.choices() pool_object_form.links.choices = Link.choices() return render_template('pool_management.html', form=AddPoolForm(request.form), pool_object_form=pool_object_form, names=pretty_names, fields=pool_public_properties, pools=Pool.serialize())
def pool_management(): pool_object_form = PoolObjectsForm(request.form) pool_object_form.devices.choices = choices('Device') pool_object_form.links.choices = choices('Link') return render_template('pool_management.html', form=AddPoolForm(request.form), pool_object_form=pool_object_form, names=pretty_names, fields=pool_table_properties, pools=serialize('Pool'))
def pool_management(): return dict(form=AddPoolForm(request.form), pool_object_form=PoolObjectsForm(request.form), fields=pool_table_properties, pools=serialize('Pool'))