Lift hansken_project to a local hansken_project

This commit is contained in:
Mattijs Ugen
2023-07-08 17:21:16 +02:00
parent ce0eb15fb1
commit a5895cce48
5 changed files with 20 additions and 5 deletions
+4 -1
View File
@@ -9,9 +9,12 @@ from hansken.connect import connect_project
# setup hansken connection
in_browser = 'js' in sys.modules
hansken_host = ''
hansken_project = '5ee273fd-0978-4a0a-b8b0-2af2f8479214'
context = connect_project(endpoint=f'http://{hansken_host}:9091/gatekeeper/',
project='5ee273fd-0978-4a0a-b8b0-2af2f8479214',
project=hansken_project,
keystore=f'http://{hansken_host}:9090/keystore/',
# Authentication is faked if we run in the browser,
# because an authenticated session should already be present
+4 -1
View File
@@ -16,9 +16,12 @@ from hansken.query import RangeFacet
# The line below finds out if we run in the browser by checking for the js module
in_browser = 'js' in sys.modules
hansken_host = ''
hansken_project = '5ee273fd-0978-4a0a-b8b0-2af2f8479214'
context = connect_project(endpoint=f'http://{hansken_host}:9091/gatekeeper/',
project='5ee273fd-0978-4a0a-b8b0-2af2f8479214',
project=hansken_project,
keystore=f'http://{hansken_host}:9090/keystore/',
# Authentication is faked if we run in the browser,
# because an authenticated session should already be present
+4 -1
View File
@@ -18,9 +18,12 @@ from hansken.query import RangeFacet
# The line below finds out if we run in the browser by checking for the js module
in_browser = 'js' in sys.modules
hansken_host = ''
hansken_project = '5ee273fd-0978-4a0a-b8b0-2af2f8479214'
context = connect_project(endpoint=f'http://{hansken_host}:9091/gatekeeper/',
project='5ee273fd-0978-4a0a-b8b0-2af2f8479214',
project=hansken_project,
keystore=f'http://{hansken_host}:9090/keystore/',
# Authentication is faked if we run in the browser,
# because an authenticated session should already be present
+4 -1
View File
@@ -12,9 +12,12 @@ from hansken.query import TermFacet
# The line below finds out if we run in the browser by checking for the js module
in_browser = 'js' in sys.modules
hansken_host = ''
hansken_project = '5ee273fd-0978-4a0a-b8b0-2af2f8479214'
context = connect_project(endpoint=f'http://{hansken_host}:9091/gatekeeper/',
project='5ee273fd-0978-4a0a-b8b0-2af2f8479214',
project=hansken_project,
keystore=f'http://{hansken_host}:9090/keystore/',
# Authentication is faked if we run in the browser,
# because an authenticated session should already be present
+4 -1
View File
@@ -12,9 +12,12 @@ from hansken.connect import connect_project
# The line below finds out if we run in the browser by checking for the js module
in_browser = 'js' in sys.modules
hansken_host = ''
hansken_project = '5ee273fd-0978-4a0a-b8b0-2af2f8479214'
context = connect_project(endpoint=f'http://{hansken_host}:9091/gatekeeper/',
project='5ee273fd-0978-4a0a-b8b0-2af2f8479214',
project=hansken_project,
keystore=f'http://{hansken_host}:9090/keystore/',
# Authentication is faked if we run in the browser,
# because an authenticated session should already be present