Tacker Horizon: ImportError: No module named openstack_dashboard.dashboards
Fix up imports in new stackforge tacker-horizon repo to use tacker_horizon module Closes Bug: #1463648 Change-Id: I578b64727eb51e4511851207dc03760a5b95ab03
This commit is contained in:
parent
61fd2cd7a9
commit
46954dfc12
0
tacker_horizon/openstack_dashboard/__init__.py
Normal file
0
tacker_horizon/openstack_dashboard/__init__.py
Normal file
33
tacker_horizon/openstack_dashboard/api/__init__.py
Normal file
33
tacker_horizon/openstack_dashboard/api/__init__.py
Normal file
@ -0,0 +1,33 @@
|
||||
# Copyright 2015 Brocade Communications System, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
"""
|
||||
Methods and interface objects used to interact with external APIs.
|
||||
|
||||
API method calls return objects that are in many cases objects with
|
||||
attributes that are direct maps to the data returned from the API http call.
|
||||
Unfortunately, these objects are also often constructed dynamically, making
|
||||
it difficult to know what data is available from the API object. Because of
|
||||
this, all API calls should wrap their returned object in one defined here,
|
||||
using only explicitly defined attributes and/or methods.
|
||||
|
||||
In other words, Horizon developers not working on openstack_dashboard.api
|
||||
shouldn't need to understand the finer details of APIs for
|
||||
Keystone/Nova/Glance/Swift et. al.
|
||||
"""
|
||||
from tacker_horizon.openstack_dashboard.api import tacker
|
||||
|
||||
|
||||
__all__ = [
|
||||
"tacker",
|
||||
]
|
@ -21,7 +21,7 @@ from horizon import exceptions
|
||||
from horizon import forms
|
||||
from horizon import messages
|
||||
|
||||
from openstack_dashboard import api
|
||||
from tacker_horizon.openstack_dashboard import api
|
||||
|
||||
import yaml
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
import horizon
|
||||
from openstack_dashboard.dashboards.nfv import dashboard
|
||||
from tacker_horizon.openstack_dashboard.dashboards.nfv import dashboard
|
||||
|
||||
class Vnfcatalog(horizon.Panel):
|
||||
name = _("VNF Catalog")
|
||||
|
@ -20,8 +20,8 @@ import uuid
|
||||
from horizon import exceptions
|
||||
from horizon import tabs
|
||||
|
||||
from openstack_dashboard import api
|
||||
from openstack_dashboard.dashboards.nfv.vnfcatalog import tables
|
||||
from tacker_horizon.openstack_dashboard import api
|
||||
from tacker_horizon.openstack_dashboard.dashboards.nfv.vnfcatalog import tables
|
||||
|
||||
|
||||
class VNFCatalogItem(object):
|
||||
|
@ -16,11 +16,11 @@
|
||||
from django.conf.urls import patterns
|
||||
from django.conf.urls import url
|
||||
|
||||
from openstack_dashboard.dashboards.nfv.vnfcatalog import views
|
||||
from tacker_horizon.openstack_dashboard.dashboards.nfv.vnfcatalog import views
|
||||
|
||||
|
||||
urlpatterns = patterns(
|
||||
'openstack_dashboard.dashboards.nfv.vnfcatalog.views',
|
||||
'tacker_horizon.openstack_dashboard.dashboards.nfv.vnfcatalog.views',
|
||||
url(r'^$', views.IndexView.as_view(), name='index'),
|
||||
url(r'^onboardvnf', views.OnBoardVNFView.as_view(), name='onboardvnf'),
|
||||
)
|
||||
|
@ -25,10 +25,10 @@ from horizon.utils import memoized
|
||||
|
||||
from openstack_dashboard import api
|
||||
|
||||
from openstack_dashboard.dashboards.nfv.vnfcatalog \
|
||||
from tacker_horizon.openstack_dashboard.dashboards.nfv.vnfcatalog \
|
||||
import tabs as nfv_tabs
|
||||
|
||||
from openstack_dashboard.dashboards.nfv.vnfcatalog \
|
||||
from tacker_horizon.openstack_dashboard.dashboards.nfv.vnfcatalog \
|
||||
import forms as project_forms
|
||||
|
||||
class IndexView(tabs.TabbedTableView):
|
||||
|
@ -19,9 +19,9 @@ from horizon import exceptions
|
||||
from horizon import forms
|
||||
from horizon import messages
|
||||
|
||||
from openstack_dashboard import api
|
||||
from openstack_dashboard.dashboards.nfv.vnfmanager.tables import VNFManagerItem
|
||||
from openstack_dashboard.dashboards.nfv.vnfmanager.tables import VNFManagerItemList
|
||||
from tacker_horizon.openstack_dashboard import api
|
||||
from tacker_horizon.openstack_dashboard.dashboards.nfv.vnfmanager.tables import VNFManagerItem
|
||||
from tacker_horizon.openstack_dashboard.dashboards.nfv.vnfmanager.tables import VNFManagerItemList
|
||||
|
||||
|
||||
class AddService(forms.SelfHandlingForm):
|
||||
|
@ -16,7 +16,7 @@
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
import horizon
|
||||
from openstack_dashboard.dashboards.nfv import dashboard
|
||||
from tacker_horizon.openstack_dashboard.dashboards.nfv import dashboard
|
||||
|
||||
class Vnfmanager(horizon.Panel):
|
||||
name = _("VNF Manager")
|
||||
|
@ -21,7 +21,7 @@ from django.utils.translation import ungettext_lazy
|
||||
from horizon import messages
|
||||
from horizon import tables
|
||||
|
||||
from openstack_dashboard import api
|
||||
from tacker_horizon.openstack_dashboard import api
|
||||
from openstack_dashboard import policy
|
||||
|
||||
class VNFManagerItem(object):
|
||||
|
@ -17,10 +17,10 @@ from django.utils.translation import ugettext_lazy as _
|
||||
from horizon import exceptions
|
||||
from horizon import tabs
|
||||
|
||||
from openstack_dashboard.dashboards.nfv.vnfmanager import tables
|
||||
from openstack_dashboard import api
|
||||
from openstack_dashboard.dashboards.nfv.vnfmanager.tables import VNFManagerItem
|
||||
from openstack_dashboard.dashboards.nfv.vnfmanager.tables import VNFManagerItemList
|
||||
from tacker_horizon.openstack_dashboard.dashboards.nfv.vnfmanager import tables
|
||||
from tacker_horizon.openstack_dashboard import api
|
||||
from tacker_horizon.openstack_dashboard.dashboards.nfv.vnfmanager.tables import VNFManagerItem
|
||||
from tacker_horizon.openstack_dashboard.dashboards.nfv.vnfmanager.tables import VNFManagerItemList
|
||||
|
||||
|
||||
class VNFManagerTab(tabs.TableTab):
|
||||
|
@ -16,11 +16,11 @@
|
||||
from django.conf.urls import patterns
|
||||
from django.conf.urls import url
|
||||
|
||||
from openstack_dashboard.dashboards.nfv.vnfmanager import views
|
||||
from tacker_horizon.openstack_dashboard.dashboards.nfv.vnfmanager import views
|
||||
|
||||
|
||||
urlpatterns = patterns(
|
||||
'openstack_dashboard.dashboards.nfv.vnfmanager.views',
|
||||
'tacker_horizon.openstack_dashboard.dashboards.nfv.vnfmanager.views',
|
||||
url(r'^$', views.IndexView.as_view(), name='index'),
|
||||
url(r'^addservice$', views.AddServiceView.as_view(), name='addservice'),
|
||||
)
|
||||
|
@ -23,12 +23,12 @@ from horizon import forms
|
||||
|
||||
from horizon.utils import memoized
|
||||
|
||||
from openstack_dashboard import api
|
||||
from tacker_horizon.openstack_dashboard import api
|
||||
|
||||
from openstack_dashboard.dashboards.nfv.vnfmanager \
|
||||
from tacker_horizon.openstack_dashboard.dashboards.nfv.vnfmanager \
|
||||
import forms as project_forms
|
||||
|
||||
from openstack_dashboard.dashboards.nfv.vnfmanager \
|
||||
from tacker_horizon.openstack_dashboard.dashboards.nfv.vnfmanager \
|
||||
import tabs as nfv_tabs
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user