def _getAPISettings():
apiSettingsURL = "{0}apiSettings".format(Keys.api_url)
log.debug("Getting API settings from {0}".format(apiSettingsURL))
httpClient = tornado.httpclient.HTTPClient()
apiResponse = httpClient.fetch(apiSettingsURL, **fetchConfig(apiSettingsURL))
apiData = json.loads(apiResponse.body)
Keys.timePermitsStorageURL = apiData.get("timePermitsStorageURL", "")
Keys.managementConsoleURL = apiData.get("managementConsoleURL", "")
log.debug("timpePermitsStorageURL = {0}; managementConsoleURL = {1}".format(Keys.timePermitsStorageURL, Keys.managementConsoleURL))
评论列表
文章目录