Added base .gitignore

This commit is contained in:
Eddie Ramirez 2016-08-04 15:55:10 +00:00
parent e263577b10
commit 19b1a51ce8
14 changed files with 103 additions and 4 deletions

7
.gitignore vendored Normal file
View File

@ -0,0 +1,7 @@
*.egg*
*.mo
*.pyc
.venv
dist
ChangeLog
AUTHORS

View File

@ -1,5 +1,6 @@
CHANGES CHANGES
======= =======
* Added regions panel
* Initial Structure * Initial Structure
* Initial commit * Initial commit

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 Taskflow(horizon.Panel):
name = _('Taskflows')
slug = 'taskflow'

View File

@ -0,0 +1 @@
<h2>Hello World!</h2>

View File

@ -0,0 +1,8 @@
from django.conf.urls import url
from craton_dashboard.dashboards.project.fleet.taskflows 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/taskflows/templates/index.hml'
page_title = _('Taskflows')
def __init__(self, *args, **kwargs):
super(IndexView, self).__init__(*args, **kwargs)
self._more = None
def get_data(self):
return []

View File

@ -18,9 +18,10 @@ from django.views import generic
from horizon import exceptions from horizon import exceptions
from horizon import forms from horizon import forms
from horizon import tables from horizon import tables
from horizon import views
class IndexView(generic.TemplateView): class IndexView(tables.DataTableView):
template_name = 'project/fleet/templates/regions/index.hml' template_name = 'project/fleet/index.hml'
page_title = _('Regions') page_title = _('Regions')
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):

View File

@ -0,0 +1,24 @@
# 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 = 'taskflows'
PANEL_DASHBOARD = 'project'
PANEL_GROUP = 'fleet_management'
ADD_PANEL = 'craton_dashboard.dashboards.project.fleeti.taksflows.panel.Taskflows'

View File

@ -1,6 +1,6 @@
Metadata-Version: 1.0 Metadata-Version: 1.0
Name: craton-ui Name: craton-ui
Version: 0.0.1.dev1 Version: 0.0.1.dev2
Summary: The Craton UI for Horizon Dashboard Summary: The Craton UI for Horizon Dashboard
Home-page: http://www.openstack.org/ Home-page: http://www.openstack.org/
Author: OSIC Author: OSIC

View File

@ -12,8 +12,13 @@ craton_dashboard/dashboards/project/fleet/__init__.py
craton_dashboard/dashboards/project/fleet/panel.py craton_dashboard/dashboards/project/fleet/panel.py
craton_dashboard/dashboards/project/fleet/urls.py craton_dashboard/dashboards/project/fleet/urls.py
craton_dashboard/dashboards/project/fleet/views.py craton_dashboard/dashboards/project/fleet/views.py
craton_dashboard/dashboards/project/fleet/taskflows/__init__.py
craton_dashboard/dashboards/project/fleet/taskflows/panel.py
craton_dashboard/dashboards/project/fleet/taskflows/urls.py
craton_dashboard/dashboards/project/fleet/taskflows/views.py
craton_dashboard/enabled/_1710_fleet_panel_group.py craton_dashboard/enabled/_1710_fleet_panel_group.py
craton_dashboard/enabled/_1720_fleet_regions_panel.py craton_dashboard/enabled/_1720_fleet_regions_panel.py
craton_dashboard/enabled/_1730_fleet_taskflows_panel.py
craton_dashboard/enabled/__init__.py craton_dashboard/enabled/__init__.py
craton_ui.egg-info/PKG-INFO craton_ui.egg-info/PKG-INFO
craton_ui.egg-info/SOURCES.txt craton_ui.egg-info/SOURCES.txt

View File

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

Binary file not shown.