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:
Sridhar Ramaswamy 2015-06-09 20:54:48 -07:00
parent 61fd2cd7a9
commit 46954dfc12
14 changed files with 55 additions and 22 deletions

View 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",
]

View File

@ -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

View File

@ -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")

View File

@ -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):

View File

@ -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'),
)

View File

@ -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):

View File

@ -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):

View File

@ -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")

View File

@ -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):

View File

@ -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):

View File

@ -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'),
)

View File

@ -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