hawat.blueprints.pdnsr.forms module

This module contains custom external PassiveDNS database search form for Hawat.

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

Bases: flask_wtf.form.FlaskForm

Class representing PassiveDNS service search form.

limit = <UnboundField(SelectFieldWithNone, (l'Pager limit:',), {'validators': [<wtforms.validators.Optional object>], 'filters': [<class 'int'>], 'choices': [(0, l'without explicit limit'), (5, 5), (10, 10), (20, 20), (25, 25), (50, 50), (100, 100), (200, 200), (250, 250), (500, 500), (1000, 1000), (2500, 2500), (5000, 5000), (10000, 10000), (25000, 25000), (50000, 50000), (100000, 100000)], 'default': 0})>
search = <UnboundField(StringField, (l'Search PassiveDNS:',), {'validators': [<wtforms.validators.DataRequired object>, <function check_ip_record>]})>
sortby = <UnboundField(SelectField, (l'Sort by:',), {'validators': [<wtforms.validators.Optional object>], 'choices': [('', l'without explicit sorting'), ('domain.desc', l'by domain name descending'), ('domain.asc', l'by domain name ascending'), ('count.desc', l'by hit count descending'), ('count.asc', l'by hit count ascending'), ('firstseen.desc', l'by first seen time descending'), ('firstseen`.asc', l'by first seen time ascending'), ('lastseen.desc', l'by last seen time descending'), ('lastseen.asc', l'by last seen time ascending')], 'default': ''})>
submit = <UnboundField(SubmitField, (l'Search',), {})>