hawat.blueprints.whois.forms module

This module contains custom internal whois resolving search form for Hawat.

class hawat.blueprints.whois.forms.WhoisSearchForm(formdata=<object object>, **kwargs)[source]

Bases: flask_wtf.form.FlaskForm

Class representing whois resolving search form.

search = <UnboundField(StringField, (l'Search internal whois:',), {'validators': [<wtforms.validators.DataRequired object>, <function check_search_data>]})>
submit = <UnboundField(SubmitField, (l'Search',), {})>
hawat.blueprints.whois.forms.check_search_data(form, field)[source]

Callback for validating whois search form data. Field value must be email address or IPv4/IPv6 address/range/network.