hawat.blueprints.hosts package

Description

This pluggable module provides access to …

Provided endpoints

/hosts/search

Endpoint providing search form for …

  • Authentication: login required

  • Authorization: any role

  • Methods: GET

class hawat.blueprints.hosts.APISearchView[source]

Bases: hawat.base.AJAXMixin, hawat.blueprints.hosts.AbstractSearchView

View responsible for querying IDEA event database and presenting the results in the form of JSON document.

classmethod get_view_name()[source]

Implementation of hawat.base.BaseView.get_view_name().

methods = ['GET', 'POST']
class hawat.blueprints.hosts.AbstractSearchView[source]

Bases: hawat.base.PsycopgMixin, hawat.base.BaseSearchView

Base class for view responsible for searching…

authentication = True
authorization = [<Permission needs={Need(method='role', value='maintainer'), Need(method='role', value='admin')} excludes=set()>]

Interface implementation of hawat.base.SearchView.do_after_search().

do_before_response(**kwargs)[source]

Implementation of hawat.base.RenderableView.do_before_response().

static get_event_columns()[source]

Get list of event database table column names.

static get_event_factory()[source]

Get reference to a item factory for converting database records into objects.

classmethod get_menu_title(**kwargs)[source]

Implementation of hawat.base.BaseView.get_menu_title().

static get_search_form(request_args)[source]

Interface implementation of hawat.base.SearchView.get_search_form().

classmethod get_view_title(**kwargs)[source]

Implementation of hawat.base.BaseView.get_view_title().

hawat.blueprints.hosts.BLUEPRINT_NAME = 'hosts'

Name of the blueprint as module global constant.

class hawat.blueprints.hosts.HostsBlueprint(name, import_name, **kwargs)[source]

Bases: hawat.base.HawatBlueprint

Hawat pluggable module - Host overview.

classmethod get_module_title()[source]

Implementation of hawat.base.HawatBlueprint.get_module_title().

register_app(app)[source]

Callback method. Will be called from hawat.base.HawatApp.register_blueprint() method and can be used to customize the Flask application object. Possible use cases:

  • application menu customization

Parameters

app (hawat.base.HawatApp) – Flask application to be customize.

class hawat.blueprints.hosts.SearchView[source]

Bases: hawat.base.HTMLMixin, hawat.blueprints.hosts.AbstractSearchView

View responsible for querying IDEA event database and presenting the results in the form of HTML page.

classmethod get_breadcrumbs_menu()[source]

Interface implementation of hawat.base.SearchView.get_breadcrumbs_menu().

methods = ['GET']
hawat.blueprints.hosts.get_blueprint()[source]

Mandatory interface and factory function. This function must return a valid instance of hawat.base.HawatBlueprint or flask.Blueprint.