hawat.blueprints.devtools package

Description

This pluggable module provides various utility and development tools.

hawat.blueprints.devtools.BLUEPRINT_NAME = 'devtools'

Name of the blueprint as module global constant.

class hawat.blueprints.devtools.ConfigView[source]

Bases: hawat.base.HTMLMixin, hawat.base.SimpleView

View for displaying current Hawat configuration and environment.

authentication = True
authorization = [<Permission needs={Need(method='role', value='developer')} excludes=set()>]
classmethod get_menu_icon()[source]

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

classmethod get_menu_title(item=None)[source]

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

classmethod get_view_name()[source]

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

classmethod get_view_title(item=None)[source]

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

class hawat.blueprints.devtools.DevtoolsBlueprint(name, import_name, **kwargs)[source]

Bases: hawat.base.HawatBlueprint

Hawat pluggable module - development tools.

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.

hawat.blueprints.devtools.get_blueprint()[source]

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