@must_be_logged_in
def dataverse_user_config_get(auth, **kwargs):
 user_addon = auth.user.get_addon('dataverse')
 user_has_auth = False
 if user_addon:
  user_has_auth = user_addon.has_auth
 return ({'result': {'userHasAuth': user_has_auth, 'urls': {'create': api_url_for('dataverse_add_user_account'), 'accounts': api_url_for('dataverse_account_list')}, 'hosts': DEFAULT_HOSTS}}, http.OK)

@ must_be_logged_in def dataverse_user_config_get ( auth , ** kwargs ) : user_addon = auth . user . get_addon ( 'dataverse' ) user_has_auth = False if user_addon : user_has_auth = user_addon . has_auth return ( { 'result' : { 'userHasAuth' : user_has_auth , 'urls' : { 'create' : api_url_for ( 'dataverse_add_user_account' ) , 'accounts' : api_url_for ( 'dataverse_account_list' ) } , 'hosts' : DEFAULT_HOSTS } } , http . OK )
view for getting a json representation of the logged-in users dataverse user settings .