Commit b3bddb8c authored by Merret Buurman's avatar Merret Buurman
Browse files

Changed retrieval of defaults (quickndirty workaround).

parent bfbab445
...@@ -9,11 +9,8 @@ except IOError: ...@@ -9,11 +9,8 @@ except IOError:
LOGGER.info('No config found.') LOGGER.info('No config found.')
CONFIG = {} CONFIG = {}
try: DEFAULTS = {}
DEFAULTS = json.loads(open('./landingpage/landingpageapp/defaults.json').read()) DEFAULTS['globalresolver'] = 'http://hdl.handle.net'
except IOError: DEFAULTS['path_restapi'] = 'api/handles'
msg = 'No default values found.' DEFAULTS['special_types'] = ['HS_ADMIN', 'HS_VLIST', 'HS_PUBKEY', 'HS_SECKEY']
LOGGER.error(msg)
#import os
#print(os.getcwd())
raise ValueError(msg)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment