Skip to content
Snippets Groups Projects
Commit 578c842e authored by Jan Mach's avatar Jan Mach
Browse files

Fix: Fixed invalid attribute name after previous refactoring.

(Redmine issue: #3443)
parent d6fb59b9
No related branches found
No related tags found
No related merge requests found
...@@ -270,7 +270,7 @@ def _setup_app_core(app): ...@@ -270,7 +270,7 @@ def _setup_app_core(app):
""" """
Return dictionary of all registered application view endpoints. Return dictionary of all registered application view endpoints.
""" """
return flask.current_app.view_classes return flask.current_app.view_functions
def get_endpoint_class(endpoint, quiet = False): def get_endpoint_class(endpoint, quiet = False):
""" """
...@@ -290,7 +290,7 @@ def _setup_app_core(app): ...@@ -290,7 +290,7 @@ def _setup_app_core(app):
:return: ``True`` in case endpoint exists, ``False`` otherwise. :return: ``True`` in case endpoint exists, ``False`` otherwise.
:rtype: bool :rtype: bool
""" """
return endpoint in app.view_classes return endpoint in app.view_functions
def get_icon(icon_name, default_icon = 'missing-icon'): def get_icon(icon_name, default_icon = 'missing-icon'):
""" """
...@@ -318,7 +318,7 @@ def _setup_app_core(app): ...@@ -318,7 +318,7 @@ def _setup_app_core(app):
:rtype: flask.Markup :rtype: flask.Markup
""" """
return flask.Markup( return flask.Markup(
hawat.const.FA_ICONS[app.view_classes.get(endpoint).module_ref().get_module_icon()] hawat.const.FA_ICONS[app.get_endpoint_class(endpoint).module_ref().get_module_icon()]
) )
def get_endpoint_icon(endpoint): def get_endpoint_icon(endpoint):
...@@ -330,7 +330,7 @@ def _setup_app_core(app): ...@@ -330,7 +330,7 @@ def _setup_app_core(app):
:rtype: flask.Markup :rtype: flask.Markup
""" """
return flask.Markup( return flask.Markup(
hawat.const.FA_ICONS[app.view_classes.get(endpoint).get_view_icon()] hawat.const.FA_ICONS[app.get_endpoint_class(endpoint).get_view_icon()]
) )
def get_csag(group): def get_csag(group):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment