X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=utils%2Ftest%2Ftestapi%2Fopnfv_testapi%2Fresources%2Fui_handlers.py;h=4c14802c4f7977f13d64aa1f9b33ee413796cb5b;hb=a1a745b4820ec46a2e707d77f6178cf9e97654f6;hp=ac8f816a44ce08c1525fbd6527c02a58761014a5;hpb=f1415796efec4984962f9817639a5ff2cd9ecd41;p=releng.git diff --git a/utils/test/testapi/opnfv_testapi/resources/ui_handlers.py b/utils/test/testapi/opnfv_testapi/resources/ui_handlers.py index ac8f816a4..4c14802c4 100644 --- a/utils/test/testapi/opnfv_testapi/resources/ui_handlers.py +++ b/utils/test/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')