Skip to content
Snippets Groups Projects
Commit 91716c85 authored by Sebastian Lobinger's avatar Sebastian Lobinger
Browse files

update SAMSHub.menu to pass tests in test_sams_hub.py and fix #29

make use of the new structure of SAMSHub_apps and _appList
parent f27e1fd2
No related branches found
No related tags found
1 merge request!21Resolve "Apps sollen mit Alias an Hub angemeldet werden können"
Pipeline #
......@@ -77,11 +77,12 @@ class SAMSHub:
def menu(self, langCode):
menu = []
for app in self._appList:
if self._config.get('main_app') == app.name:
menu.extend(app.menu(langCode = langCode))
for appDict in self._appList:
if self._config.get('main_app') == appDict['app'].name:
menu.extend(appDict['app'].menu(langCode = langCode))
else:
menu.extend(app.menu(langCode = langCode, urlPrefix = app.name))
menu.extend(appDict['app'].menu(langCode = langCode,
urlPrefix = appDict['urlPrefix']))
return menu
@staticmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment