From 7bb53c64da2dcf88894bfd31503accdd81498f3d Mon Sep 17 00:00:00 2001 From: Thomas Duval Date: Wed, 3 Jun 2020 10:06:52 +0200 Subject: Update to new version 5.4 Signed-off-by: Thomas Duval Change-Id: Idcd868133d75928a1ffd74d749ce98503e0555ea --- moon_dashboard/moon/policy/__init__.py | 0 moon_dashboard/moon/policy/panel.py | 23 ---------------------- .../moon/policy/templates/policy/index.html | 16 --------------- moon_dashboard/moon/policy/tests.py | 19 ------------------ moon_dashboard/moon/policy/urls.py | 20 ------------------- moon_dashboard/moon/policy/views.py | 22 --------------------- 6 files changed, 100 deletions(-) delete mode 100644 moon_dashboard/moon/policy/__init__.py delete mode 100644 moon_dashboard/moon/policy/panel.py delete mode 100644 moon_dashboard/moon/policy/templates/policy/index.html delete mode 100644 moon_dashboard/moon/policy/tests.py delete mode 100644 moon_dashboard/moon/policy/urls.py delete mode 100644 moon_dashboard/moon/policy/views.py (limited to 'moon_dashboard/moon/policy') diff --git a/moon_dashboard/moon/policy/__init__.py b/moon_dashboard/moon/policy/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/moon_dashboard/moon/policy/panel.py b/moon_dashboard/moon/policy/panel.py deleted file mode 100644 index 875a2d76..00000000 --- a/moon_dashboard/moon/policy/panel.py +++ /dev/null @@ -1,23 +0,0 @@ -# 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 -from openstack_dashboard.dashboards.moon import dashboard - -class Policy(horizon.Panel): - name = _("Policies") - slug = "policy" - - -dashboard.Moon.register(Policy) diff --git a/moon_dashboard/moon/policy/templates/policy/index.html b/moon_dashboard/moon/policy/templates/policy/index.html deleted file mode 100644 index 67cd9c3d..00000000 --- a/moon_dashboard/moon/policy/templates/policy/index.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends 'base.html' %} -{% load i18n %} -{% block title %}{% trans "Policies" %}{% endblock %} - -{% block page_header %} - {% include "horizon/common/_page_header.html" with title=_("Policies") %} -{% endblock page_header %} - - - -{% block main %} - - -{% endblock %} - diff --git a/moon_dashboard/moon/policy/tests.py b/moon_dashboard/moon/policy/tests.py deleted file mode 100644 index ec988636..00000000 --- a/moon_dashboard/moon/policy/tests.py +++ /dev/null @@ -1,19 +0,0 @@ -# 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 horizon.test import helpers as test - - -class MypanelTests(test.TestCase): - # Unit tests for mypanel. - def test_me(self): - self.assertTrue(1 + 1 == 2) diff --git a/moon_dashboard/moon/policy/urls.py b/moon_dashboard/moon/policy/urls.py deleted file mode 100644 index 81bde0ca..00000000 --- a/moon_dashboard/moon/policy/urls.py +++ /dev/null @@ -1,20 +0,0 @@ -# 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.conf.urls import url - -from openstack_dashboard.dashboards.moon.policy import views - - -urlpatterns = [ - url(r'^$', views.IndexView.as_view(), name='index'), -] diff --git a/moon_dashboard/moon/policy/views.py b/moon_dashboard/moon/policy/views.py deleted file mode 100644 index 826c833b..00000000 --- a/moon_dashboard/moon/policy/views.py +++ /dev/null @@ -1,22 +0,0 @@ -# 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 horizon import views - - -class IndexView(views.APIView): - # A very simple class-based view... - template_name = 'moon/policy/index.html' - - def get_data(self, request, context, *args, **kwargs): - # Add data to the context here... - return context -- cgit 1.2.3-korg