From 0e407ab069811f77bdad338feb814e699730c40d Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Tue, 13 Jan 2015 09:25:07 +0100 Subject: [PATCH] Add license headers to the panel/dashboard templates This patch adds the Apache2 license headers to the panel/dashboard templates used in the 'Tutorial: Building a Dashboard using Horizon' to generate new panels/dashboards. This solves the hacking issue 'H102 Apache 2.0 license header not found'. Co-Authored-By: Thomas Kaergel Change-Id: Ic48053c06be00439dfaf8ac49df8fb577898cab4 --- horizon/conf/dash_template/dashboard.py.tmpl | 12 ++++++++++++ horizon/conf/dash_template/models.py | 12 ++++++++++++ horizon/conf/panel_template/panel.py.tmpl | 12 ++++++++++++ horizon/conf/panel_template/tests.py.tmpl | 12 ++++++++++++ horizon/conf/panel_template/urls.py.tmpl | 12 ++++++++++++ horizon/conf/panel_template/views.py | 12 ++++++++++++ 6 files changed, 72 insertions(+) diff --git a/horizon/conf/dash_template/dashboard.py.tmpl b/horizon/conf/dash_template/dashboard.py.tmpl index 9e435bef37..049631780a 100644 --- a/horizon/conf/dash_template/dashboard.py.tmpl +++ b/horizon/conf/dash_template/dashboard.py.tmpl @@ -1,3 +1,15 @@ +# 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 diff --git a/horizon/conf/dash_template/models.py b/horizon/conf/dash_template/models.py index 1b3d5f9efc..428ef07c29 100644 --- a/horizon/conf/dash_template/models.py +++ b/horizon/conf/dash_template/models.py @@ -1,3 +1,15 @@ +# 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. + """ Stub file to work around django bug: https://code.djangoproject.com/ticket/7198 """ diff --git a/horizon/conf/panel_template/panel.py.tmpl b/horizon/conf/panel_template/panel.py.tmpl index 949ac09690..f356d18b75 100644 --- a/horizon/conf/panel_template/panel.py.tmpl +++ b/horizon/conf/panel_template/panel.py.tmpl @@ -1,3 +1,15 @@ +# 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 diff --git a/horizon/conf/panel_template/tests.py.tmpl b/horizon/conf/panel_template/tests.py.tmpl index 4663b3b349..d161f711c8 100644 --- a/horizon/conf/panel_template/tests.py.tmpl +++ b/horizon/conf/panel_template/tests.py.tmpl @@ -1,3 +1,15 @@ +# 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 diff --git a/horizon/conf/panel_template/urls.py.tmpl b/horizon/conf/panel_template/urls.py.tmpl index 13113211cf..a6b6e5b463 100644 --- a/horizon/conf/panel_template/urls.py.tmpl +++ b/horizon/conf/panel_template/urls.py.tmpl @@ -1,3 +1,15 @@ +# 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 patterns from django.conf.urls import url diff --git a/horizon/conf/panel_template/views.py b/horizon/conf/panel_template/views.py index a5116ca488..89da310272 100644 --- a/horizon/conf/panel_template/views.py +++ b/horizon/conf/panel_template/views.py @@ -1,3 +1,15 @@ +# 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