Fix up get_preference()
This commit is contained in:
parent
c345c465be
commit
59b9b51715
|
@ -331,11 +331,11 @@ class RefineProject:
|
||||||
# TODO: implement rest
|
# TODO: implement rest
|
||||||
return response
|
return response
|
||||||
|
|
||||||
def get_preferences(self, name):
|
def get_preference(self, name):
|
||||||
"""Returns the (JSON) value of a given preference."""
|
"""Returns the (JSON) value of a given preference setting."""
|
||||||
response = self.do_json('get-preferences', {'name': name},
|
response = self.server.urlopen_json('get-preference',
|
||||||
include_engine=False)
|
params={'name': name})
|
||||||
return response['value']
|
return json.loads(response['value'])
|
||||||
|
|
||||||
def wait_until_idle(self, polling_delay=0.5):
|
def wait_until_idle(self, polling_delay=0.5):
|
||||||
while True:
|
while True:
|
||||||
|
@ -554,7 +554,7 @@ class RefineProject:
|
||||||
return response['types']
|
return response['types']
|
||||||
|
|
||||||
def get_reconciliation_services(self):
|
def get_reconciliation_services(self):
|
||||||
response = self.get_preferences('reconciliation.standardServices')
|
response = self.get_preference('reconciliation.standardServices')
|
||||||
self.recon_services = response
|
self.recon_services = response
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue