Added regions panel
This commit is contained in:
parent
ea966ea8db
commit
e263577b10
2
AUTHORS
Normal file
2
AUTHORS
Normal file
@ -0,0 +1,2 @@
|
||||
Eddie Ramirez <djedi.r@gmail.com>
|
||||
Eddie Ramirez <eddie.ramirez@intel.com>
|
5
ChangeLog
Normal file
5
ChangeLog
Normal file
@ -0,0 +1,5 @@
|
||||
CHANGES
|
||||
=======
|
||||
|
||||
* Initial Structure
|
||||
* Initial commit
|
0
craton_dashboard/__init__.py
Normal file
0
craton_dashboard/__init__.py
Normal file
0
craton_dashboard/dashboards/__init__.py
Normal file
0
craton_dashboard/dashboards/__init__.py
Normal file
BIN
craton_dashboard/dashboards/__init__.pyc
Normal file
BIN
craton_dashboard/dashboards/__init__.pyc
Normal file
Binary file not shown.
0
craton_dashboard/dashboards/project/__init__.py
Normal file
0
craton_dashboard/dashboards/project/__init__.py
Normal file
BIN
craton_dashboard/dashboards/project/__init__.pyc
Normal file
BIN
craton_dashboard/dashboards/project/__init__.pyc
Normal file
Binary file not shown.
BIN
craton_dashboard/dashboards/project/fleet/__init__.pyc
Normal file
BIN
craton_dashboard/dashboards/project/fleet/__init__.pyc
Normal file
Binary file not shown.
21
craton_dashboard/dashboards/project/fleet/panel.py
Normal file
21
craton_dashboard/dashboards/project/fleet/panel.py
Normal file
@ -0,0 +1,21 @@
|
||||
# Copyright 2016 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
import horizon
|
||||
|
||||
class Regions(horizon.Panel):
|
||||
name = _('Regions')
|
||||
slug = 'regions'
|
BIN
craton_dashboard/dashboards/project/fleet/panel.pyc
Normal file
BIN
craton_dashboard/dashboards/project/fleet/panel.pyc
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
||||
<h1>Hello</h1>
|
8
craton_dashboard/dashboards/project/fleet/urls.py
Normal file
8
craton_dashboard/dashboards/project/fleet/urls.py
Normal file
@ -0,0 +1,8 @@
|
||||
from django.conf.urls import url
|
||||
|
||||
from craton_dashboard.dashboards.project.fleet import views
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^$', views.IndexView.as_view(), name='index'),
|
||||
]
|
||||
|
31
craton_dashboard/dashboards/project/fleet/views.py
Normal file
31
craton_dashboard/dashboards/project/fleet/views.py
Normal file
@ -0,0 +1,31 @@
|
||||
# Copyright 2016 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from django.views import generic
|
||||
|
||||
from horizon import exceptions
|
||||
from horizon import forms
|
||||
from horizon import tables
|
||||
|
||||
class IndexView(generic.TemplateView):
|
||||
template_name = 'project/fleet/templates/regions/index.hml'
|
||||
page_title = _('Regions')
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(IndexView, self).__init__(*args, **kwargs)
|
||||
self._more = None
|
||||
|
||||
def get_data(self):
|
||||
return []
|
23
craton_dashboard/enabled/_1710_fleet_panel_group.py
Normal file
23
craton_dashboard/enabled/_1710_fleet_panel_group.py
Normal file
@ -0,0 +1,23 @@
|
||||
# Copyright 2016 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
PANEL_GROUP = 'fleet_management'
|
||||
|
||||
PANEL_GROUP_NAME = _('Fleet Management')
|
||||
|
||||
PANEL_GROUP_DASHBOARD = 'project'
|
||||
|
||||
DISABLED = False
|
25
craton_dashboard/enabled/_1720_fleet_regions_panel.py
Normal file
25
craton_dashboard/enabled/_1720_fleet_regions_panel.py
Normal file
@ -0,0 +1,25 @@
|
||||
# Copyright 2016 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
PANEL = 'regions'
|
||||
|
||||
PANEL_DASHBOARD = 'project'
|
||||
|
||||
PANEL_GROUP = 'fleet_management'
|
||||
|
||||
ADD_PANEL = 'craton_dashboard.dashboards.project.fleet.panel.Regions'
|
||||
|
||||
ADD_INSTALLED_APPS = ['craton_dashboard']
|
0
craton_dashboard/enabled/__init__.py
Normal file
0
craton_dashboard/enabled/__init__.py
Normal file
12
craton_ui.egg-info/PKG-INFO
Normal file
12
craton_ui.egg-info/PKG-INFO
Normal file
@ -0,0 +1,12 @@
|
||||
Metadata-Version: 1.0
|
||||
Name: craton-ui
|
||||
Version: 0.0.1.dev1
|
||||
Summary: The Craton UI for Horizon Dashboard
|
||||
Home-page: http://www.openstack.org/
|
||||
Author: OSIC
|
||||
Author-email: eddie.ramirez@intel.com
|
||||
License: UNKNOWN
|
||||
Description: Craton UI for Horizon Dashboard
|
||||
|
||||
|
||||
Platform: UNKNOWN
|
23
craton_ui.egg-info/SOURCES.txt
Normal file
23
craton_ui.egg-info/SOURCES.txt
Normal file
@ -0,0 +1,23 @@
|
||||
AUTHORS
|
||||
ChangeLog
|
||||
LICENSE
|
||||
README.rst
|
||||
setup.cfg
|
||||
setup.py
|
||||
craton_dashboard/__init__.py
|
||||
craton_dashboard/api/craton.py
|
||||
craton_dashboard/dashboards/__init__.py
|
||||
craton_dashboard/dashboards/project/__init__.py
|
||||
craton_dashboard/dashboards/project/fleet/__init__.py
|
||||
craton_dashboard/dashboards/project/fleet/panel.py
|
||||
craton_dashboard/dashboards/project/fleet/urls.py
|
||||
craton_dashboard/dashboards/project/fleet/views.py
|
||||
craton_dashboard/enabled/_1710_fleet_panel_group.py
|
||||
craton_dashboard/enabled/_1720_fleet_regions_panel.py
|
||||
craton_dashboard/enabled/__init__.py
|
||||
craton_ui.egg-info/PKG-INFO
|
||||
craton_ui.egg-info/SOURCES.txt
|
||||
craton_ui.egg-info/dependency_links.txt
|
||||
craton_ui.egg-info/not-zip-safe
|
||||
craton_ui.egg-info/pbr.json
|
||||
craton_ui.egg-info/top_level.txt
|
1
craton_ui.egg-info/dependency_links.txt
Normal file
1
craton_ui.egg-info/dependency_links.txt
Normal file
@ -0,0 +1 @@
|
||||
|
1
craton_ui.egg-info/not-zip-safe
Normal file
1
craton_ui.egg-info/not-zip-safe
Normal file
@ -0,0 +1 @@
|
||||
|
1
craton_ui.egg-info/pbr.json
Normal file
1
craton_ui.egg-info/pbr.json
Normal file
@ -0,0 +1 @@
|
||||
{"is_release": false, "git_version": "ea966ea"}
|
1
craton_ui.egg-info/top_level.txt
Normal file
1
craton_ui.egg-info/top_level.txt
Normal file
@ -0,0 +1 @@
|
||||
craton_dashboard
|
BIN
dist/craton-ui-0.0.1.dev1.tar.gz
vendored
Normal file
BIN
dist/craton-ui-0.0.1.dev1.tar.gz
vendored
Normal file
Binary file not shown.
23
setup.cfg
Normal file
23
setup.cfg
Normal file
@ -0,0 +1,23 @@
|
||||
[metadata]
|
||||
name = craton-ui
|
||||
summary = The Craton UI for Horizon Dashboard
|
||||
description-file =
|
||||
README.rst
|
||||
author = OSIC
|
||||
author_email = eddie.ramirez@intel.com
|
||||
home-page = http://www.openstack.org/
|
||||
classifiers = [
|
||||
Environment :: OpenStack
|
||||
Framework :: Django
|
||||
Intended Audience :: Developers
|
||||
Intended Audience :: System Administrators
|
||||
License :: OSI Approved :: Apache Software License
|
||||
Operating System :: POSIX :: Linux
|
||||
Programming Language :: Python
|
||||
Programming Language :: Python :: 2
|
||||
Programming Language :: Python :: 2.7
|
||||
Programming Language :: Python :: 3.4
|
||||
|
||||
[files]
|
||||
packages =
|
||||
craton_dashboard
|
29
setup.py
Normal file
29
setup.py
Normal file
@ -0,0 +1,29 @@
|
||||
# Copyright (c) 2016 Intel Corporation
|
||||
#
|
||||
# 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.
|
||||
|
||||
# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT
|
||||
import setuptools
|
||||
|
||||
# In python < 2.7.4, a lazy loading of package `pbr` will break
|
||||
# setuptools if some other modules registered functions in `atexit`.
|
||||
# solution from: http://bugs.python.org/issue15881#msg170215
|
||||
try:
|
||||
import multiprocessing # noqa
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
setuptools.setup(
|
||||
setup_requires=['pbr>=1.8'],
|
||||
pbr=True)
|
Loading…
Reference in New Issue
Block a user