mirror of
https://github.com/NetherlandsForensicInstitute/hansken-python-workshop.git
synced 2026-08-20 04:47:33 +00:00
Lift hansken_project to a local hansken_project
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user