summaryrefslogtreecommitdiffstats
path: root/windriver/titanium_cloud/registration
diff options
context:
space:
mode:
authorYun Huang <yun.huang@windriver.com>2018-03-07 09:16:38 +0800
committerYun Huang <yun.huang@windriver.com>2018-03-07 09:23:18 +0800
commit9b38263158909c0d20c0f36438071b3c532ec284 (patch)
tree05cebf5569f401ddeb095ea6282e2203e6c3eec0 /windriver/titanium_cloud/registration
parent8ff2e0716d126a9d47dc98f933bb0bc046faa05d (diff)
Change the code base from newton to share
And adopt settings,depreciate config Change-Id: Ib467a6e914ae89ab8799d38191dfed8b3cd7b726 Issue-ID: MULTICLOUD-138 Signed-off-by: Yun Huang <yun.huang@windriver.com>
Diffstat (limited to 'windriver/titanium_cloud/registration')
-rw-r--r--windriver/titanium_cloud/registration/tests/test_registration.py4
-rw-r--r--windriver/titanium_cloud/registration/views/registration.py6
2 files changed, 5 insertions, 5 deletions
diff --git a/windriver/titanium_cloud/registration/tests/test_registration.py b/windriver/titanium_cloud/registration/tests/test_registration.py
index d96e2359..01a40217 100644
--- a/windriver/titanium_cloud/registration/tests/test_registration.py
+++ b/windriver/titanium_cloud/registration/tests/test_registration.py
@@ -16,10 +16,10 @@ import mock
from rest_framework import status
-from newton.pub.utils import restcall
+from common.utils import restcall
from newton.requests.tests import mock_info
from newton.requests.tests import test_base
-from newton.requests.views.util import VimDriverUtils
+from newton_base.util import VimDriverUtils
MOCK_GET_TENANT_RESPONSE = {
"projects":[
diff --git a/windriver/titanium_cloud/registration/views/registration.py b/windriver/titanium_cloud/registration/views/registration.py
index ee9be716..da83efaa 100644
--- a/windriver/titanium_cloud/registration/views/registration.py
+++ b/windriver/titanium_cloud/registration/views/registration.py
@@ -14,9 +14,9 @@
import logging
-from titanium_cloud.pub.config import config
+from django.conf import settings
-from newton.registration.views import registration as newton_registration
+from newton_base.registration import registration as newton_registration
logger = logging.getLogger(__name__)
@@ -25,5 +25,5 @@ DEBUG=True
class Registry(newton_registration.Registry):
def __init__(self):
- self.proxy_prefix = config.MULTICLOUD_PREFIX
+ self.proxy_prefix = settings.MULTICLOUD_PREFIX
self._logger = logger