Ejemplo n.º 1
0
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())
Ejemplo n.º 2
0
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'))
Ejemplo n.º 3
0
def pool_management():
    return dict(form=AddPoolForm(request.form),
                pool_object_form=PoolObjectsForm(request.form),
                fields=pool_table_properties,
                pools=serialize('Pool'))