Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
production
building-knowledge-centre
building-dao
Commits
1cd590f6
Commit
1cd590f6
authored
Sep 24, 2019
by
Marc-Andre Santune
Browse files
pass registry as argument to __ini__ settings
parent
4044444f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
building_dao/settings.py
building_dao/settings.py
+5
-2
No files found.
building_dao/settings.py
View file @
1cd590f6
...
...
@@ -2,8 +2,11 @@ from MaxIcsRegistry import MaxIcsRegistry
class
Settings
:
def
__init__
(
self
,
staging
):
registry
=
MaxIcsRegistry
.
from_env
(
staging
=
False
,
skip_delay
=
True
)
def
__init__
(
self
,
staging
:
str
,
registry
=
None
):
if
not
registry
:
registry
=
MaxIcsRegistry
.
from_env
(
staging
=
staging
,
skip_delay
=
True
)
building_center_info
=
registry
.
get_info
(
"building-knowledge-information-center"
)
self
.
api_key
=
building_center_info
[
"api_in"
][
registry
.
node_id
][
"key"
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment