Added regions panel

This commit is contained in:
Eddie Ramirez 2016-08-04 00:17:08 +00:00
parent ea966ea8db
commit e263577b10
27 changed files with 207 additions and 0 deletions

2
AUTHORS Normal file
View File

@ -0,0 +1,2 @@
Eddie Ramirez <djedi.r@gmail.com>
Eddie Ramirez <eddie.ramirez@intel.com>

5
ChangeLog Normal file
View File

@ -0,0 +1,5 @@
CHANGES
=======
* Initial Structure
* Initial commit

View File

View File

Binary file not shown.

Binary file not shown.

Binary file not shown.

View 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'

Binary file not shown.

View File

@ -0,0 +1 @@
<h1>Hello</h1>

View 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'),
]

View 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 []

View 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

View 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']

View File

View 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

View 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

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@
{"is_release": false, "git_version": "ea966ea"}

View File

@ -0,0 +1 @@
craton_dashboard

BIN
dist/craton-ui-0.0.1.dev1.tar.gz vendored Normal file

Binary file not shown.

23
setup.cfg Normal file
View 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
View 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)