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
Merret Buurman
pidlandingpage
Commits
b3bddb8c
Commit
b3bddb8c
authored
Jun 06, 2016
by
Merret Buurman
Browse files
Changed retrieval of defaults (quickndirty workaround).
parent
bfbab445
Changes
1
Hide whitespace changes
Inline
Side-by-side
landingpage/landingpageapp/config_and_defaults.py
View file @
b3bddb8c
...
...
@@ -9,11 +9,8 @@ except IOError:
LOGGER
.
info
(
'No config found.'
)
CONFIG
=
{}
try
:
DEFAULTS
=
json
.
loads
(
open
(
'./landingpage/landingpageapp/defaults.json'
).
read
())
except
IOError
:
msg
=
'No default values found.'
LOGGER
.
error
(
msg
)
#import os
#print(os.getcwd())
raise
ValueError
(
msg
)
DEFAULTS
=
{}
DEFAULTS
[
'globalresolver'
]
=
'http://hdl.handle.net'
DEFAULTS
[
'path_restapi'
]
=
'api/handles'
DEFAULTS
[
'special_types'
]
=
[
'HS_ADMIN'
,
'HS_VLIST'
,
'HS_PUBKEY'
,
'HS_SECKEY'
]
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