Move project panels to new project dir

This is to make panels division more clear, we will add admin
panels later.

Change-Id: I84c3f53eed5b2399abfc59d476a1031c1bfc258f
This commit is contained in:
Zhenguo Niu 2017-05-15 13:11:40 +08:00
parent 60c1be6150
commit 398e11dc71
29 changed files with 28 additions and 10 deletions

View File

@ -0,0 +1,17 @@
# 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.
import pbr.version
__version__ = pbr.version.VersionInfo(
'mogan-ui').version_string()

View File

@ -17,7 +17,7 @@
# under the License.
from django.conf.urls import url
from mogan_ui.content.key_pairs import views
from mogan_ui.content.project.key_pairs import views
urlpatterns = [
url(r'^$', views.IndexView.as_view(), name='index'),

View File

@ -27,8 +27,8 @@ from horizon import tables
from horizon.utils import memoized
from horizon import views
from mogan_ui.api import mogan
from mogan_ui.content.key_pairs import forms as key_pairs_forms
from mogan_ui.content.key_pairs import tables as key_pairs_tables
from mogan_ui.content.project.key_pairs import forms as key_pairs_forms
from mogan_ui.content.project.key_pairs import tables as key_pairs_tables
class IndexView(tables.DataTableView):

View File

@ -14,7 +14,7 @@
# limitations under the License.
from django.conf.urls import url
from mogan_ui.content.servers import views
from mogan_ui.content.project.servers import views
urlpatterns = [
url(r'^$', views.IndexView.as_view(), name='index'),

View File

@ -17,9 +17,9 @@ from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_lazy as _
from mogan_ui.api import mogan
from mogan_ui.content.servers import tables as project_tables
from mogan_ui.content.servers import tabs as project_tabs
from mogan_ui.content.servers import workflows as project_workflows
from mogan_ui.content.project.servers import tables as project_tables
from mogan_ui.content.project.servers import tabs as project_tabs
from mogan_ui.content.project.servers import workflows as project_workflows
from horizon import exceptions
from horizon import tables

View File

@ -10,7 +10,8 @@
# License for the specific language governing permissions and limitations
# under the License.
from mogan_ui.content.servers.workflows.create_server import LaunchServer
from mogan_ui.content.project.servers.workflows.create_server \
import LaunchServer
__all__ = [
'LaunchServer',

View File

@ -18,4 +18,4 @@ PANEL_GROUP = 'baremetal_compute'
PANEL_DASHBOARD = 'project'
# Python panel class of the PANEL to be added.
ADD_PANEL = 'mogan_ui.content.servers.panel.Servers'
ADD_PANEL = 'mogan_ui.content.project.servers.panel.Servers'

View File

@ -18,4 +18,4 @@ PANEL_GROUP = 'baremetal_compute'
PANEL_DASHBOARD = 'project'
# Python panel class of the PANEL to be added.
ADD_PANEL = 'mogan_ui.content.key_pairs.panel.KeyPairs'
ADD_PANEL = 'mogan_ui.content.project.key_pairs.panel.KeyPairs'