Skip to content
Snippets Groups Projects

Resolve "Apps sollen mit Alias an Hub angemeldet werden können"

1 file
+ 4
3
Compare changes
  • Side-by-side
  • Inline
+ 4
3
@@ -33,12 +33,13 @@ class SAMSHub:
def addApp(self, app: SAMSApp = None, alias = None):
if not isinstance(app, SAMSApp):
raise TypeError('Argument app has to be a SAMSApp.')
self._apps[app.name] = app
self._appList.append(app)
appDict = {'app': app, 'urlPrefix': (alias or app.name)}
self._apps[app.name] = appDict
self._appList.append(appDict)
if app.name == self._config.get('main_app'):
self._flaskApp.register_blueprint(app.blueprint)
self._flaskApp.register_blueprint(
app.blueprint, url_prefix = '/' + (alias or app.name))
app.blueprint, url_prefix = '/' + appDict['urlPrefix'])
@property
def appKeys(self):
Loading