hawat.blueprints.filters package

Description

This pluggable module provides access to reporting filter management features. These features include:

  • general reporting filter listing

  • detailed reporting filter view

  • creating new reporting filters

  • updating existing reporting filters

  • deleting existing reporting filters

hawat.blueprints.filters.BLUEPRINT_NAME = 'filters'

Name of the blueprint as module global constant.

class hawat.blueprints.filters.CreateForView[source]

Bases: hawat.base.HTMLMixin, hawat.base.SQLAlchemyMixin, hawat.base.HawatItemCreateForView

View for creating new reporting filters.

static add_parent_to_item(item, parent)[source]

Hook method. Implementation of hawat.base.HawatItemCreateForView.add_parent_to_item() interface.

authentication = True
classmethod authorize_item_action(**kwargs)[source]

Perform access authorization for current user to particular item.

dbmodel

Implementation of hawat.base.SQLAlchemyMixin.dbmodel().

dbmodel_par

Implementation of hawat.base.SQLAlchemyMixin.dbmodel().

do_before_action(item)[source]

Hook method. Implementation of hawat.base.ItemActionView.do_before_action() interface.

do_before_response(**kwargs)[source]

Hook method. Implementation of hawat.base.HawatDbmodelView.do_before_render() interface.

static get_item_form()[source]

Implementation of hawat.base.ItemCreateView.get_item_form().

classmethod get_menu_legend(**kwargs)[source]

Interface implementation of hawat.base.BaseView.get_menu_legend().

classmethod get_menu_title(**kwargs)[source]

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

static get_message_cancel(**kwargs)[source]

Implementation of hawat.base.ItemActionView.get_message_cancel().

static get_message_failure(**kwargs)[source]

Implementation of hawat.base.ItemActionView.get_message_failure().

static get_message_success(**kwargs)[source]

Implementation of hawat.base.ItemActionView.get_message_success().

classmethod get_view_icon()[source]

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

classmethod get_view_title(**kwargs)[source]

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

classmethod get_view_url(**kwargs)[source]

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

methods = ['GET', 'POST']
class hawat.blueprints.filters.CreateView[source]

Bases: hawat.base.HTMLMixin, hawat.base.SQLAlchemyMixin, hawat.base.ItemCreateView

View for creating new reporting filters.

authentication = True
classmethod authorize_item_action(**kwargs)[source]

Perform access authorization for current user to particular item.

dbmodel

Implementation of hawat.base.SQLAlchemyMixin.dbmodel().

do_before_action(item)[source]

Hook method. Implementation of hawat.base.ItemActionView.do_before_action() interface.

do_before_response(**kwargs)[source]

Hook method. Implementation of hawat.base.HawatDbmodelView.do_before_render() interface.

static get_item_form()[source]

Implementation of hawat.base.ItemCreateView.get_item_form().

classmethod get_menu_title(**kwargs)[source]

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

static get_message_cancel(**kwargs)[source]

Implementation of hawat.base.ItemActionView.get_message_cancel().

static get_message_failure(**kwargs)[source]

Implementation of hawat.base.ItemActionView.get_message_failure().

static get_message_success(**kwargs)[source]

Implementation of hawat.base.ItemActionView.get_message_success().

classmethod get_view_title(**kwargs)[source]

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

methods = ['GET', 'POST']
class hawat.blueprints.filters.DeleteView[source]

Bases: hawat.base.HTMLMixin, hawat.base.SQLAlchemyMixin, hawat.base.ItemDeleteView

View for deleting existing reporting filters.

authentication = True
classmethod authorize_item_action(**kwargs)[source]

Perform access authorization for current user to particular item.

dbmodel

Implementation of hawat.base.SQLAlchemyMixin.dbmodel().

classmethod get_menu_legend(**kwargs)[source]

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

static get_message_cancel(**kwargs)[source]

Implementation of hawat.base.ItemActionView.get_message_cancel().

static get_message_failure(**kwargs)[source]

Implementation of hawat.base.ItemActionView.get_message_failure().

static get_message_success(**kwargs)[source]

Implementation of hawat.base.ItemActionView.get_message_success().

methods = ['GET', 'POST']
class hawat.blueprints.filters.DisableView[source]

Bases: hawat.base.HTMLMixin, hawat.base.SQLAlchemyMixin, hawat.base.ItemDisableView

View for deleting existing user accounts.

authentication = True
classmethod authorize_item_action(**kwargs)[source]

Perform access authorization for current user to particular item.

dbmodel

Implementation of hawat.base.SQLAlchemyMixin.dbmodel().

classmethod get_menu_legend(**kwargs)[source]

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

static get_message_cancel(**kwargs)[source]

Implementation of hawat.base.ItemActionView.get_message_cancel().

static get_message_failure(**kwargs)[source]

Implementation of hawat.base.ItemActionView.get_message_failure().

static get_message_success(**kwargs)[source]

Implementation of hawat.base.ItemActionView.get_message_success().

methods = ['GET', 'POST']
class hawat.blueprints.filters.EnableView[source]

Bases: hawat.base.HTMLMixin, hawat.base.SQLAlchemyMixin, hawat.base.ItemEnableView

View for enabling existing groups.

authentication = True
classmethod authorize_item_action(**kwargs)[source]

Perform access authorization for current user to particular item.

dbmodel

Implementation of hawat.base.SQLAlchemyMixin.dbmodel().

classmethod get_menu_legend(**kwargs)[source]

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

static get_message_cancel(**kwargs)[source]

Implementation of hawat.base.ItemActionView.get_message_cancel().

static get_message_failure(**kwargs)[source]

Implementation of hawat.base.ItemActionView.get_message_failure().

static get_message_success(**kwargs)[source]

Implementation of hawat.base.ItemActionView.get_message_success().

methods = ['GET', 'POST']
class hawat.blueprints.filters.FiltersBlueprint(name, import_name, **kwargs)[source]

Bases: hawat.base.HawatBlueprint

Hawat pluggable module - reporting filters.

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.filters.ListView[source]

Bases: hawat.base.HTMLMixin, hawat.base.SQLAlchemyMixin, hawat.base.ItemListView

General reporting filter listing.

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

Implementation of hawat.base.SQLAlchemyMixin.dbmodel().

classmethod get_action_menu()[source]

Implementation of hawat.base.ItemListView.get_action_menu().

classmethod get_context_action_menu()[source]

Implementation of hawat.base.ItemListView.get_context_action_menu().

classmethod get_view_title(**kwargs)[source]

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

methods = ['GET']
class hawat.blueprints.filters.PlaygroundView[source]

Bases: hawat.base.HTMLMixin, hawat.base.RenderableView

Reporting filter playground view.

authentication = True
dispatch_request()[source]

Mandatory interface required by the flask.views.View.dispatch_request(). Will be called by the Flask framework to service the request.

classmethod get_breadcrumbs_menu()[source]

Get breadcrumbs menu.

classmethod get_menu_legend(**kwargs)[source]

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

classmethod get_menu_title(**kwargs)[source]

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

classmethod get_view_icon()[source]

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

classmethod get_view_name()[source]

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

classmethod get_view_title(**kwargs)[source]

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

methods = ['GET', 'POST']
class hawat.blueprints.filters.ShowView[source]

Bases: hawat.base.HTMLMixin, hawat.base.SQLAlchemyMixin, hawat.base.ItemShowView

Detailed reporting filter view.

authentication = True
classmethod authorize_item_action(**kwargs)[source]

Perform access authorization for current user to particular item.

dbmodel

Implementation of hawat.base.SQLAlchemyMixin.dbmodel().

do_before_response(**kwargs)[source]

Hook method. Implementation of hawat.base.HawatDbmodelView.do_before_render() interface.

classmethod get_action_menu()[source]

Get action menu for particular item.

classmethod get_menu_legend(**kwargs)[source]

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

classmethod get_view_title(**kwargs)[source]

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

methods = ['GET']
class hawat.blueprints.filters.UpdateView[source]

Bases: hawat.base.HTMLMixin, hawat.base.SQLAlchemyMixin, hawat.base.ItemUpdateView

View for updating existing reporting filters.

authentication = True
classmethod authorize_item_action(**kwargs)[source]

Perform access authorization for current user to particular item.

dbmodel

Implementation of hawat.base.SQLAlchemyMixin.dbmodel().

do_before_action(item)[source]

Hook method. Implementation of hawat.base.ItemActionView.do_before_action() interface.

do_before_response(**kwargs)[source]

Hook method. Implementation of hawat.base.HawatDbmodelView.do_before_render() interface.

static get_item_form(item)[source]

Implementation of hawat.base.ItemUpdateView.get_item_form().

classmethod get_menu_legend(**kwargs)[source]

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

static get_message_cancel(**kwargs)[source]

Implementation of hawat.base.ItemActionView.get_message_cancel().

static get_message_failure(**kwargs)[source]

Implementation of hawat.base.ItemActionView.get_message_failure().

static get_message_success(**kwargs)[source]

Implementation of hawat.base.ItemActionView.get_message_success().

classmethod get_view_title(**kwargs)[source]

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

methods = ['GET', 'POST']
hawat.blueprints.filters.get_blueprint()[source]

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

hawat.blueprints.filters.process_rule(item)[source]

Process given event report filtering rule and generate advanced single rule string from simple filtering form data.

hawat.blueprints.filters.to_tree(rule)[source]

Parse given filtering rule to object tree.

hawat.blueprints.filters.tree_check(rule_tree, data)[source]

Check given event against given rule tree.

hawat.blueprints.filters.tree_compile(rule_tree)[source]

Compile given filtering rule tree.

hawat.blueprints.filters.tree_html(rule_tree)[source]

Render given rule object tree to HTML formatted content.