hawat.blueprints.changelogs package

Description

This pluggable module provides access to item changelogs.

hawat.blueprints.changelogs.BLUEPRINT_NAME = 'changelogs'

Name of the blueprint as module global constant.

class hawat.blueprints.changelogs.ItemChangeLogsBlueprint(name, import_name, **kwargs)[source]

Bases: hawat.base.HawatBlueprint

Hawat pluggable module - changelogs.

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.changelogs.SearchView[source]

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

General item changelog record listing.

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

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

property dbmodel

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

classmethod get_context_action_menu()[source]

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

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().

methods = ['GET']
class hawat.blueprints.changelogs.ShowView[source]

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

Detailed network record view.

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

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

classmethod get_breadcrumbs_menu()[source]

Get breadcrumbs menu.

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().

classmethod get_view_title(**kwargs)[source]

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

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

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