hawat.blueprints.networks.forms module

This module contains custom network record management forms for Hawat.

class hawat.blueprints.networks.forms.AdminNetworkForm(*args, **kwargs)[source]

Bases: hawat.blueprints.networks.forms.BaseNetworkForm

Class representing network record create form.

group = <UnboundField(QuerySelectField, (l'Group:',), {'allow_blank': False, 'query_factory': <function get_available_groups>})>
class hawat.blueprints.networks.forms.BaseNetworkForm(*args, **kwargs)[source]

Bases: hawat.forms.BaseItemForm

Class representing base network record form.

cancel = <UnboundField(SubmitField, (l'Cancel',), {})>
description = <UnboundField(TextAreaField, (l'Description:',), {})>
netname = <UnboundField(StringField, (l'Netname:',), {'validators': [<wtforms.validators.DataRequired object>, <wtforms.validators.Length object>]})>
network = <UnboundField(TextAreaField, (l'Network:',), {'validators': [<wtforms.validators.DataRequired object>, <function check_network_record>]})>
source = <UnboundField(HiddenField, (), {'default': 'manual', 'validators': [<wtforms.validators.DataRequired object>, <wtforms.validators.Length object>]})>
submit = <UnboundField(SubmitField, (l'Submit',), {})>
hawat.blueprints.networks.forms.get_available_groups()[source]

Query the database for list of all available groups.