Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sams-classes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
coding-at-fu
sams-classes
Commits
8804817e
Commit
8804817e
authored
8 years ago
by
Sebastian Lobinger
Browse files
Options
Downloads
Patches
Plain Diff
updated sams_hub.py to pass test_sams_hub.py test_main_app fix issue
#12
parent
24f86b7b
Branches
Branches containing commit
No related tags found
1 merge request
!7
Resolve "test_main_app sollte auch funktionieren wenn man die die namen test und test.app vertauscht"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sams_classes/sams_hub.py
+2
-2
2 additions, 2 deletions
sams_classes/sams_hub.py
with
2 additions
and
2 deletions
sams_classes/sams_hub.py
+
2
−
2
View file @
8804817e
...
@@ -35,7 +35,7 @@ class SAMSHub:
...
@@ -35,7 +35,7 @@ class SAMSHub:
raise
TypeError
(
'
Argument app has to be a SAMSApp.
'
)
raise
TypeError
(
'
Argument app has to be a SAMSApp.
'
)
self
.
_apps
[
app
.
name
]
=
app
self
.
_apps
[
app
.
name
]
=
app
self
.
_appList
.
append
(
app
)
self
.
_appList
.
append
(
app
)
if
app
.
name
is
self
.
_config
.
get
(
'
main_app
'
):
if
app
.
name
==
self
.
_config
.
get
(
'
main_app
'
):
self
.
_flaskApp
.
register_blueprint
(
app
.
blueprint
)
self
.
_flaskApp
.
register_blueprint
(
app
.
blueprint
)
else
:
else
:
self
.
_flaskApp
.
register_blueprint
(
self
.
_flaskApp
.
register_blueprint
(
...
@@ -78,7 +78,7 @@ class SAMSHub:
...
@@ -78,7 +78,7 @@ class SAMSHub:
def
menu
(
self
,
langCode
):
def
menu
(
self
,
langCode
):
menu
=
[]
menu
=
[]
for
app
in
self
.
_appList
:
for
app
in
self
.
_appList
:
if
self
.
_config
.
get
(
'
main_app
'
)
is
app
.
name
:
if
self
.
_config
.
get
(
'
main_app
'
)
==
app
.
name
:
menu
.
extend
(
app
.
menu
(
langCode
=
langCode
))
menu
.
extend
(
app
.
menu
(
langCode
=
langCode
))
else
:
else
:
menu
.
extend
(
app
.
menu
(
langCode
=
langCode
,
urlPrefix
=
app
.
name
))
menu
.
extend
(
app
.
menu
(
langCode
=
langCode
,
urlPrefix
=
app
.
name
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment