summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/resources
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2017-05-12 18:33:00 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2017-05-17 16:43:12 +0800
commit74a3b45c290d1b6e289ac1c3b9425e804e2f0ab7 (patch)
tree905343c0fbd8114b1619641dcf359e2cd3fc1928 /testapi/opnfv_testapi/resources
parentde3ac5fcdb1259df876df53d93b4166011fae79b (diff)
refactor static_path to accomodate web portal
move tornado_swagger/static to opnfv_testapi/static move swagger related 3rd libs to 3rd_party/swagger Change-Id: I32bba10584c99d13687b93f32577e37581db0c63 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'testapi/opnfv_testapi/resources')
-rw-r--r--testapi/opnfv_testapi/resources/ui_handlers.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/testapi/opnfv_testapi/resources/ui_handlers.py b/testapi/opnfv_testapi/resources/ui_handlers.py
index ac8f816..4c14802 100644
--- a/testapi/opnfv_testapi/resources/ui_handlers.py
+++ b/testapi/opnfv_testapi/resources/ui_handlers.py
@@ -1,14 +1,11 @@
from opnfv_testapi.resources.handlers import GenericApiHandler
-from opnfv_testapi.tornado_swagger import settings
+from opnfv_testapi.common import config
class UIHandler(GenericApiHandler):
- def initialize(self, **kwargs):
- self.static_path = settings.docs_settings.get('static_path')
- self.base_url = 'http://localhost:8000'
def get_template_path(self):
- return self.static_path
+ return config.Config().static_path
def get(self):
self.render('testapi-ui/index.html')