diff --git a/openstack_dashboard/context_processors.py b/openstack_dashboard/context_processors.py index 6ba0ed42ad..3ed396b0b9 100644 --- a/openstack_dashboard/context_processors.py +++ b/openstack_dashboard/context_processors.py @@ -21,14 +21,9 @@ Context processors used by Horizon. """ -import logging - from django.conf import settings # noqa -LOG = logging.getLogger(__name__) - - def openstack(request): """ Context processor necessary for OpenStack Dashboard functionality. diff --git a/openstack_dashboard/dashboards/admin/defaults/tables.py b/openstack_dashboard/dashboards/admin/defaults/tables.py index 9910631939..7f67f20888 100644 --- a/openstack_dashboard/dashboards/admin/defaults/tables.py +++ b/openstack_dashboard/dashboards/admin/defaults/tables.py @@ -14,16 +14,11 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.utils.translation import ugettext_lazy as _ # noqa from horizon import tables -LOG = logging.getLogger(__name__) - - class QuotaFilterAction(tables.FilterAction): def filter(self, table, tenants, filter_string): q = filter_string.lower() diff --git a/openstack_dashboard/dashboards/admin/defaults/views.py b/openstack_dashboard/dashboards/admin/defaults/views.py index 26b9125706..03207c8321 100644 --- a/openstack_dashboard/dashboards/admin/defaults/views.py +++ b/openstack_dashboard/dashboards/admin/defaults/views.py @@ -14,8 +14,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.utils.translation import ugettext_lazy as _ # noqa from horizon import tabs @@ -27,9 +25,6 @@ from openstack_dashboard.dashboards.admin.defaults import workflows as \ from openstack_dashboard.usage import quotas -LOG = logging.getLogger(__name__) - - class IndexView(tabs.TabbedTableView): tab_group_class = project_tabs.DefaultsTabs template_name = 'admin/defaults/index.html' diff --git a/openstack_dashboard/dashboards/admin/flavors/extras/forms.py b/openstack_dashboard/dashboards/admin/flavors/extras/forms.py index b54731cef8..3bf286fc8e 100644 --- a/openstack_dashboard/dashboards/admin/flavors/extras/forms.py +++ b/openstack_dashboard/dashboards/admin/flavors/extras/forms.py @@ -18,8 +18,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.utils.translation import ugettext_lazy as _ # noqa from openstack_dashboard import api @@ -28,8 +26,6 @@ from horizon import exceptions from horizon import forms from horizon import messages -LOG = logging.getLogger(__name__) - class CreateExtraSpec(forms.SelfHandlingForm): key = forms.CharField(max_length="25", label=_("Key")) diff --git a/openstack_dashboard/dashboards/admin/flavors/extras/tables.py b/openstack_dashboard/dashboards/admin/flavors/extras/tables.py index dac0e4afe4..88e47741a2 100644 --- a/openstack_dashboard/dashboards/admin/flavors/extras/tables.py +++ b/openstack_dashboard/dashboards/admin/flavors/extras/tables.py @@ -14,8 +14,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.core.urlresolvers import reverse # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -24,9 +22,6 @@ from horizon import tables from openstack_dashboard import api -LOG = logging.getLogger(__name__) - - class ExtraSpecDelete(tables.DeleteAction): data_type_singular = _("ExtraSpec") data_type_plural = _("ExtraSpecs") diff --git a/openstack_dashboard/dashboards/admin/flavors/extras/views.py b/openstack_dashboard/dashboards/admin/flavors/extras/views.py index ecbd78a23b..90e86f2a46 100644 --- a/openstack_dashboard/dashboards/admin/flavors/extras/views.py +++ b/openstack_dashboard/dashboards/admin/flavors/extras/views.py @@ -18,8 +18,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.utils.translation import ugettext_lazy as _ # noqa from horizon import exceptions @@ -34,9 +32,6 @@ from openstack_dashboard.dashboards.admin.flavors.extras \ import tables as project_tables -LOG = logging.getLogger(__name__) - - class ExtraSpecMixin(object): def get_context_data(self, **kwargs): context = super(ExtraSpecMixin, self).get_context_data(**kwargs) diff --git a/openstack_dashboard/dashboards/admin/flavors/tables.py b/openstack_dashboard/dashboards/admin/flavors/tables.py index fa8f24eede..557ad57919 100644 --- a/openstack_dashboard/dashboards/admin/flavors/tables.py +++ b/openstack_dashboard/dashboards/admin/flavors/tables.py @@ -18,8 +18,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.core.urlresolvers import reverse # noqa from django.template import defaultfilters as filters from django.utils.http import urlencode # noqa @@ -30,9 +28,6 @@ from horizon import tables from openstack_dashboard import api -LOG = logging.getLogger(__name__) - - class DeleteFlavor(tables.DeleteAction): data_type_singular = _("Flavor") data_type_plural = _("Flavors") diff --git a/openstack_dashboard/dashboards/admin/flavors/views.py b/openstack_dashboard/dashboards/admin/flavors/views.py index defd870283..4503520241 100644 --- a/openstack_dashboard/dashboards/admin/flavors/views.py +++ b/openstack_dashboard/dashboards/admin/flavors/views.py @@ -18,8 +18,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.core.urlresolvers import reverse_lazy # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -35,8 +33,6 @@ from openstack_dashboard.dashboards.admin.flavors \ import workflows as flavor_workflows -LOG = logging.getLogger(__name__) - INDEX_URL = "horizon:admin:flavors:index" diff --git a/openstack_dashboard/dashboards/admin/hypervisors/tables.py b/openstack_dashboard/dashboards/admin/hypervisors/tables.py index 062d5f40f5..bceed97608 100644 --- a/openstack_dashboard/dashboards/admin/hypervisors/tables.py +++ b/openstack_dashboard/dashboards/admin/hypervisors/tables.py @@ -14,15 +14,11 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.utils.translation import ugettext_lazy as _ # noqa from horizon import tables from horizon.templatetags import sizeformat -LOG = logging.getLogger(__name__) - def get_memory(hypervisor): return sizeformat.mbformat(hypervisor.memory_mb) diff --git a/openstack_dashboard/dashboards/admin/hypervisors/views.py b/openstack_dashboard/dashboards/admin/hypervisors/views.py index c4c0bb15f8..7cd9e2f139 100644 --- a/openstack_dashboard/dashboards/admin/hypervisors/views.py +++ b/openstack_dashboard/dashboards/admin/hypervisors/views.py @@ -14,8 +14,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.utils.translation import ugettext_lazy as _ # noqa from horizon import exceptions @@ -24,8 +22,6 @@ from openstack_dashboard import api from openstack_dashboard.dashboards.admin.hypervisors \ import tables as project_tables -LOG = logging.getLogger(__name__) - class AdminIndexView(tables.DataTableView): table_class = project_tables.AdminHypervisorsTable diff --git a/openstack_dashboard/dashboards/admin/images/views.py b/openstack_dashboard/dashboards/admin/images/views.py index 3b16b45c3b..41b302434b 100644 --- a/openstack_dashboard/dashboards/admin/images/views.py +++ b/openstack_dashboard/dashboards/admin/images/views.py @@ -18,8 +18,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.core.urlresolvers import reverse_lazy # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -35,9 +33,6 @@ from openstack_dashboard.dashboards.admin.images \ import tables as project_tables -LOG = logging.getLogger(__name__) - - class IndexView(tables.DataTableView): table_class = project_tables.AdminImagesTable template_name = 'admin/images/index.html' diff --git a/openstack_dashboard/dashboards/admin/info/tables.py b/openstack_dashboard/dashboards/admin/info/tables.py index f951086a71..d4f3fe74e8 100644 --- a/openstack_dashboard/dashboards/admin/info/tables.py +++ b/openstack_dashboard/dashboards/admin/info/tables.py @@ -1,5 +1,3 @@ -import logging - from django import template from django.template import defaultfilters as filters from django.utils.translation import ugettext_lazy as _ # noqa @@ -8,9 +6,6 @@ from horizon import tables from horizon.utils import filters as utils_filters -LOG = logging.getLogger(__name__) - - class ServiceFilterAction(tables.FilterAction): def filter(self, table, services, filter_string): q = filter_string.lower() diff --git a/openstack_dashboard/dashboards/admin/info/views.py b/openstack_dashboard/dashboards/admin/info/views.py index 58ec8ca6e0..fca4f27a4e 100644 --- a/openstack_dashboard/dashboards/admin/info/views.py +++ b/openstack_dashboard/dashboards/admin/info/views.py @@ -18,16 +18,11 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from horizon import tabs from openstack_dashboard.dashboards.admin.info import tabs as project_tabs -LOG = logging.getLogger(__name__) - - class IndexView(tabs.TabbedTableView): tab_group_class = project_tabs.SystemInfoTabs template_name = 'admin/info/index.html' diff --git a/openstack_dashboard/dashboards/admin/instances/tables.py b/openstack_dashboard/dashboards/admin/instances/tables.py index 1b9676ff8d..01a862c383 100644 --- a/openstack_dashboard/dashboards/admin/instances/tables.py +++ b/openstack_dashboard/dashboards/admin/instances/tables.py @@ -15,8 +15,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.template.defaultfilters import timesince # noqa from django.template.defaultfilters import title # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -28,8 +26,6 @@ from openstack_dashboard import api from openstack_dashboard.dashboards.project.instances \ import tables as project_tables -LOG = logging.getLogger(__name__) - class AdminEditInstance(project_tables.EditInstance): url = "horizon:admin:instances:update" diff --git a/openstack_dashboard/dashboards/admin/instances/views.py b/openstack_dashboard/dashboards/admin/instances/views.py index 441a5d2349..3397f25994 100644 --- a/openstack_dashboard/dashboards/admin/instances/views.py +++ b/openstack_dashboard/dashboards/admin/instances/views.py @@ -19,8 +19,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.utils.datastructures import SortedDict # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -34,8 +32,6 @@ from openstack_dashboard.dashboards.project.instances import views from openstack_dashboard.dashboards.project.instances.workflows \ import update_instance -LOG = logging.getLogger(__name__) - # re-use console from project.instances.views to make reflection work def console(args, **kvargs): diff --git a/openstack_dashboard/dashboards/admin/metering/tables.py b/openstack_dashboard/dashboards/admin/metering/tables.py index eaeb0e5e0e..a7c316a3a5 100644 --- a/openstack_dashboard/dashboards/admin/metering/tables.py +++ b/openstack_dashboard/dashboards/admin/metering/tables.py @@ -12,8 +12,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.template.defaultfilters import filesizeformat # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -22,9 +20,6 @@ from horizon import tables from openstack_dashboard import api -LOG = logging.getLogger(__name__) - - class CommonFilterAction(tables.FilterAction): def filter(self, table, resources, filter_string): q = filter_string.lower() diff --git a/openstack_dashboard/dashboards/admin/metering/views.py b/openstack_dashboard/dashboards/admin/metering/views.py index 95c454e7d9..9b615d5663 100644 --- a/openstack_dashboard/dashboards/admin/metering/views.py +++ b/openstack_dashboard/dashboards/admin/metering/views.py @@ -16,7 +16,6 @@ from datetime import datetime # noqa from datetime import timedelta # noqa import json -import logging from django.http import HttpResponse # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -31,8 +30,6 @@ from openstack_dashboard.api import ceilometer from openstack_dashboard.dashboards.admin.metering import tabs as \ metering_tabs -LOG = logging.getLogger(__name__) - class IndexView(tabs.TabbedTableView): tab_group_class = metering_tabs.CeilometerOverviewTabs diff --git a/openstack_dashboard/dashboards/admin/networks/ports/tabs.py b/openstack_dashboard/dashboards/admin/networks/ports/tabs.py index b0f187cdf3..665889d5ff 100644 --- a/openstack_dashboard/dashboards/admin/networks/ports/tabs.py +++ b/openstack_dashboard/dashboards/admin/networks/ports/tabs.py @@ -14,8 +14,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.core.urlresolvers import reverse # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -25,9 +23,6 @@ from horizon import tabs from openstack_dashboard import api -LOG = logging.getLogger(__name__) - - class OverviewTab(tabs.Tab): name = _("Overview") slug = "overview" diff --git a/openstack_dashboard/dashboards/admin/networks/ports/views.py b/openstack_dashboard/dashboards/admin/networks/ports/views.py index 846e9ca0f1..0b6d85d439 100644 --- a/openstack_dashboard/dashboards/admin/networks/ports/views.py +++ b/openstack_dashboard/dashboards/admin/networks/ports/views.py @@ -14,8 +14,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.core.urlresolvers import reverse # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -29,8 +27,6 @@ from openstack_dashboard.dashboards.project.networks.ports \ from openstack_dashboard.dashboards.admin.networks.ports \ import forms as project_forms -LOG = logging.getLogger(__name__) - class CreateView(forms.ModalFormView): form_class = project_forms.CreatePort diff --git a/openstack_dashboard/dashboards/admin/networks/subnets/views.py b/openstack_dashboard/dashboards/admin/networks/subnets/views.py index d226a4a8db..5926085fb9 100644 --- a/openstack_dashboard/dashboards/admin/networks/subnets/views.py +++ b/openstack_dashboard/dashboards/admin/networks/subnets/views.py @@ -14,17 +14,12 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from openstack_dashboard.dashboards.project.networks.subnets \ import views as project_views from openstack_dashboard.dashboards.admin.networks.subnets import workflows -LOG = logging.getLogger(__name__) - - class CreateView(project_views.CreateView): workflow_class = workflows.CreateSubnet diff --git a/openstack_dashboard/dashboards/admin/networks/views.py b/openstack_dashboard/dashboards/admin/networks/views.py index b92b69bf4f..c31c4f66d0 100644 --- a/openstack_dashboard/dashboards/admin/networks/views.py +++ b/openstack_dashboard/dashboards/admin/networks/views.py @@ -14,8 +14,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.core.urlresolvers import reverse_lazy # noqa from django.utils.datastructures import SortedDict # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -37,9 +35,6 @@ from openstack_dashboard.dashboards.admin.networks \ import tables as networks_tables -LOG = logging.getLogger(__name__) - - class IndexView(tables.DataTableView): table_class = networks_tables.NetworksTable template_name = 'admin/networks/index.html' diff --git a/openstack_dashboard/dashboards/admin/projects/tables.py b/openstack_dashboard/dashboards/admin/projects/tables.py index 2b4e2837a1..dd1471d543 100644 --- a/openstack_dashboard/dashboards/admin/projects/tables.py +++ b/openstack_dashboard/dashboards/admin/projects/tables.py @@ -1,5 +1,3 @@ -import logging - from django.core.urlresolvers import reverse # noqa from django.utils.http import urlencode # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -9,8 +7,6 @@ from horizon import tables from openstack_dashboard import api from openstack_dashboard.api import keystone -LOG = logging.getLogger(__name__) - class ViewMembersLink(tables.LinkAction): name = "users" diff --git a/openstack_dashboard/dashboards/admin/projects/views.py b/openstack_dashboard/dashboards/admin/projects/views.py index dfa2cafdd9..f9af86976f 100644 --- a/openstack_dashboard/dashboards/admin/projects/views.py +++ b/openstack_dashboard/dashboards/admin/projects/views.py @@ -18,8 +18,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.core.urlresolvers import reverse # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -37,7 +35,6 @@ from openstack_dashboard.dashboards.admin.projects \ from openstack_dashboard.dashboards.admin.projects \ import workflows as project_workflows -LOG = logging.getLogger(__name__) PROJECT_INFO_FIELDS = ("domain_id", "domain_name", diff --git a/openstack_dashboard/dashboards/admin/roles/tables.py b/openstack_dashboard/dashboards/admin/roles/tables.py index 5d0e201a87..37e731f0d4 100644 --- a/openstack_dashboard/dashboards/admin/roles/tables.py +++ b/openstack_dashboard/dashboards/admin/roles/tables.py @@ -14,8 +14,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.utils.translation import ugettext_lazy as _ # noqa from horizon import tables @@ -23,9 +21,6 @@ from horizon import tables from openstack_dashboard import api -LOG = logging.getLogger(__name__) - - class CreateRoleLink(tables.LinkAction): name = "create" verbose_name = _("Create Role") diff --git a/openstack_dashboard/dashboards/admin/routers/ports/tables.py b/openstack_dashboard/dashboards/admin/routers/ports/tables.py index 550cd2adc9..dc9d618926 100644 --- a/openstack_dashboard/dashboards/admin/routers/ports/tables.py +++ b/openstack_dashboard/dashboards/admin/routers/ports/tables.py @@ -14,8 +14,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.utils.translation import ugettext_lazy as _ # noqa from horizon import tables @@ -25,9 +23,6 @@ from openstack_dashboard.dashboards.project.routers.ports \ import tables as routers_tables -LOG = logging.getLogger(__name__) - - class PortsTable(tables.DataTable): name = tables.Column("name", verbose_name=_("Name"), diff --git a/openstack_dashboard/dashboards/admin/routers/ports/tabs.py b/openstack_dashboard/dashboards/admin/routers/ports/tabs.py index 16d63b85dd..83ea839a82 100644 --- a/openstack_dashboard/dashboards/admin/routers/ports/tabs.py +++ b/openstack_dashboard/dashboards/admin/routers/ports/tabs.py @@ -13,13 +13,10 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. -import logging from horizon import tabs from openstack_dashboard.dashboards.project.routers.ports import tabs as r_tabs -LOG = logging.getLogger(__name__) - class OverviewTab(r_tabs.OverviewTab): template_name = "admin/networks/ports/_detail_overview.html" diff --git a/openstack_dashboard/dashboards/admin/routers/ports/views.py b/openstack_dashboard/dashboards/admin/routers/ports/views.py index 1f40c6e55b..c9b8fa2ecd 100644 --- a/openstack_dashboard/dashboards/admin/routers/ports/views.py +++ b/openstack_dashboard/dashboards/admin/routers/ports/views.py @@ -14,17 +14,12 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from horizon import tabs from openstack_dashboard.dashboards.admin.routers.ports \ import tabs as project_tabs -LOG = logging.getLogger(__name__) - - class DetailView(tabs.TabView): tab_group_class = project_tabs.PortDetailTabs template_name = 'admin/networks/ports/detail.html' diff --git a/openstack_dashboard/dashboards/admin/routers/tables.py b/openstack_dashboard/dashboards/admin/routers/tables.py index a2ba1ab8bf..7a0fb798ed 100644 --- a/openstack_dashboard/dashboards/admin/routers/tables.py +++ b/openstack_dashboard/dashboards/admin/routers/tables.py @@ -14,8 +14,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.template.defaultfilters import title # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -24,9 +22,6 @@ from openstack_dashboard import api from openstack_dashboard.dashboards.project.routers import tables as r_tables -LOG = logging.getLogger(__name__) - - class DeleteRouter(r_tables.DeleteRouter): redirect_url = "horizon:admin:routers:index" diff --git a/openstack_dashboard/dashboards/admin/routers/views.py b/openstack_dashboard/dashboards/admin/routers/views.py index 0da2c0500e..7be126bdcc 100644 --- a/openstack_dashboard/dashboards/admin/routers/views.py +++ b/openstack_dashboard/dashboards/admin/routers/views.py @@ -18,8 +18,6 @@ Views for managing Neutron Routers. """ -import logging - from django.core.urlresolvers import reverse_lazy # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -33,9 +31,6 @@ from openstack_dashboard.dashboards.admin.routers.ports \ from openstack_dashboard.dashboards.admin.routers import tables -LOG = logging.getLogger(__name__) - - class IndexView(r_views.IndexView, n_views.IndexView): table_class = tables.RoutersTable template_name = 'admin/routers/index.html' diff --git a/openstack_dashboard/dashboards/admin/users/tables.py b/openstack_dashboard/dashboards/admin/users/tables.py index 35bdc48789..d47d68d22f 100644 --- a/openstack_dashboard/dashboards/admin/users/tables.py +++ b/openstack_dashboard/dashboards/admin/users/tables.py @@ -1,5 +1,3 @@ -import logging - from django.template import defaultfilters from django.utils.translation import ugettext_lazy as _ # noqa @@ -8,7 +6,6 @@ from horizon import tables from openstack_dashboard import api -LOG = logging.getLogger(__name__) ENABLE = 0 DISABLE = 1 diff --git a/openstack_dashboard/dashboards/project/access_and_security/keypairs/tables.py b/openstack_dashboard/dashboards/project/access_and_security/keypairs/tables.py index 9714be371d..f1c3cb53d3 100644 --- a/openstack_dashboard/dashboards/project/access_and_security/keypairs/tables.py +++ b/openstack_dashboard/dashboards/project/access_and_security/keypairs/tables.py @@ -14,8 +14,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.utils.translation import ugettext_lazy as _ # noqa from horizon import tables @@ -23,9 +21,6 @@ from horizon import tables from openstack_dashboard import api -LOG = logging.getLogger(__name__) - - class DeleteKeyPairs(tables.DeleteAction): data_type_singular = _("Keypair") data_type_plural = _("Keypairs") diff --git a/openstack_dashboard/dashboards/project/access_and_security/keypairs/views.py b/openstack_dashboard/dashboards/project/access_and_security/keypairs/views.py index 6c60aa89cd..6bc4b82ed2 100644 --- a/openstack_dashboard/dashboards/project/access_and_security/keypairs/views.py +++ b/openstack_dashboard/dashboards/project/access_and_security/keypairs/views.py @@ -21,8 +21,6 @@ """ Views for managing keypairs. """ -import logging - from django.core.urlresolvers import reverse # noqa from django.core.urlresolvers import reverse_lazy # noqa from django import http @@ -40,9 +38,6 @@ from openstack_dashboard.dashboards.project.access_and_security.keypairs \ import forms as project_forms -LOG = logging.getLogger(__name__) - - class CreateView(forms.ModalFormView): form_class = project_forms.CreateKeypair template_name = 'project/access_and_security/keypairs/create.html' diff --git a/openstack_dashboard/dashboards/project/access_and_security/security_groups/forms.py b/openstack_dashboard/dashboards/project/access_and_security/security_groups/forms.py index ee9c43295e..93834765c7 100644 --- a/openstack_dashboard/dashboards/project/access_and_security/security_groups/forms.py +++ b/openstack_dashboard/dashboards/project/access_and_security/security_groups/forms.py @@ -18,8 +18,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - import netaddr from django.conf import settings # noqa @@ -38,9 +36,6 @@ from openstack_dashboard import api from openstack_dashboard.utils import filters -LOG = logging.getLogger(__name__) - - class CreateGroup(forms.SelfHandlingForm): name = forms.CharField(label=_("Name"), error_messages={ diff --git a/openstack_dashboard/dashboards/project/access_and_security/security_groups/tables.py b/openstack_dashboard/dashboards/project/access_and_security/security_groups/tables.py index 68f2021a7f..e74d20b0f4 100644 --- a/openstack_dashboard/dashboards/project/access_and_security/security_groups/tables.py +++ b/openstack_dashboard/dashboards/project/access_and_security/security_groups/tables.py @@ -14,8 +14,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.conf import settings # noqa from django.core.urlresolvers import reverse # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -26,9 +24,6 @@ from openstack_dashboard import api from openstack_dashboard.utils import filters -LOG = logging.getLogger(__name__) - - class DeleteGroup(tables.DeleteAction): data_type_singular = _("Security Group") data_type_plural = _("Security Groups") diff --git a/openstack_dashboard/dashboards/project/access_and_security/security_groups/views.py b/openstack_dashboard/dashboards/project/access_and_security/security_groups/views.py index 12fb614074..a6be1dcff7 100644 --- a/openstack_dashboard/dashboards/project/access_and_security/security_groups/views.py +++ b/openstack_dashboard/dashboards/project/access_and_security/security_groups/views.py @@ -21,8 +21,6 @@ """ Views for managing instances. """ -import logging - from django.core.urlresolvers import reverse # noqa from django.core.urlresolvers import reverse_lazy # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -40,9 +38,6 @@ from openstack_dashboard.dashboards.project.access_and_security.\ security_groups import tables as project_tables -LOG = logging.getLogger(__name__) - - class DetailView(tables.DataTableView): table_class = project_tables.RulesTable template_name = 'project/access_and_security/security_groups/detail.html' diff --git a/openstack_dashboard/dashboards/project/containers/forms.py b/openstack_dashboard/dashboards/project/containers/forms.py index 4bc0208921..c9d4de740d 100644 --- a/openstack_dashboard/dashboards/project/containers/forms.py +++ b/openstack_dashboard/dashboards/project/containers/forms.py @@ -18,8 +18,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.core.urlresolvers import reverse # noqa from django.core import validators from django.utils.translation import ugettext_lazy as _ # noqa @@ -32,9 +30,6 @@ from openstack_dashboard import api from openstack_dashboard.dashboards.project.containers import tables -LOG = logging.getLogger(__name__) - - no_slash_validator = validators.RegexValidator(r'^(?u)[^/]+$', _("Slash is not an allowed " "character."), diff --git a/openstack_dashboard/dashboards/project/containers/tables.py b/openstack_dashboard/dashboards/project/containers/tables.py index e66f532f13..786b942c8f 100644 --- a/openstack_dashboard/dashboards/project/containers/tables.py +++ b/openstack_dashboard/dashboards/project/containers/tables.py @@ -14,8 +14,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.core.urlresolvers import reverse # noqa from django.template.defaultfilters import filesizeformat # noqa from django.utils import http @@ -27,9 +25,6 @@ from openstack_dashboard import api from openstack_dashboard.api import swift -LOG = logging.getLogger(__name__) - - def wrap_delimiter(name): if name and not name.endswith(swift.FOLDER_DELIMITER): return name + swift.FOLDER_DELIMITER diff --git a/openstack_dashboard/dashboards/project/database_backups/tables.py b/openstack_dashboard/dashboards/project/database_backups/tables.py index 877544c6da..d6267dcdec 100644 --- a/openstack_dashboard/dashboards/project/database_backups/tables.py +++ b/openstack_dashboard/dashboards/project/database_backups/tables.py @@ -14,8 +14,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.core.urlresolvers import reverse # noqa from django.template.defaultfilters import title # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -26,8 +24,6 @@ from horizon.utils import filters from openstack_dashboard import api -LOG = logging.getLogger(__name__) - STATUS_CHOICES = ( ("BUILDING", None), ("COMPLETED", True), diff --git a/openstack_dashboard/dashboards/project/database_backups/views.py b/openstack_dashboard/dashboards/project/database_backups/views.py index fc223fec60..0fc66fcb34 100644 --- a/openstack_dashboard/dashboards/project/database_backups/views.py +++ b/openstack_dashboard/dashboards/project/database_backups/views.py @@ -17,8 +17,6 @@ """ Views for displaying database backups. """ -import logging - from django.core.urlresolvers import reverse # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -32,8 +30,6 @@ from openstack_dashboard import api from openstack_dashboard.dashboards.project.database_backups import tables from openstack_dashboard.dashboards.project.database_backups import workflows -LOG = logging.getLogger(__name__) - class IndexView(horizon_tables.DataTableView): table_class = tables.BackupsTable diff --git a/openstack_dashboard/dashboards/project/databases/tables.py b/openstack_dashboard/dashboards/project/databases/tables.py index a506374c06..c691ba02f8 100644 --- a/openstack_dashboard/dashboards/project/databases/tables.py +++ b/openstack_dashboard/dashboards/project/databases/tables.py @@ -14,8 +14,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.core import urlresolvers from django.template.defaultfilters import title # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -30,8 +28,6 @@ from openstack_dashboard.dashboards.project.database_backups \ import tables as backup_tables -LOG = logging.getLogger(__name__) - ACTIVE_STATES = ("ACTIVE",) diff --git a/openstack_dashboard/dashboards/project/firewalls/tables.py b/openstack_dashboard/dashboards/project/firewalls/tables.py index 3708e683f9..08c214606d 100644 --- a/openstack_dashboard/dashboards/project/firewalls/tables.py +++ b/openstack_dashboard/dashboards/project/firewalls/tables.py @@ -15,17 +15,12 @@ # # @author: KC Wang, Big Switch Networks -import logging - from django.core.urlresolvers import reverse # noqa from django.utils.translation import ugettext_lazy as _ # noqa from horizon import tables -LOG = logging.getLogger(__name__) - - class AddRuleLink(tables.LinkAction): name = "addrule" verbose_name = _("Add Rule") diff --git a/openstack_dashboard/dashboards/project/firewalls/views.py b/openstack_dashboard/dashboards/project/firewalls/views.py index 1baad62610..dfad25bc65 100644 --- a/openstack_dashboard/dashboards/project/firewalls/views.py +++ b/openstack_dashboard/dashboards/project/firewalls/views.py @@ -15,7 +15,6 @@ # # @author: KC Wang, Big Switch Networks -import logging import re from django.core.urlresolvers import reverse_lazy # noqa @@ -50,8 +49,6 @@ AddFirewall = fw_workflows.AddFirewall AddPolicy = fw_workflows.AddPolicy AddRule = fw_workflows.AddRule -LOG = logging.getLogger(__name__) - class IndexView(tabs.TabView): tab_group_class = (FirewallTabs) diff --git a/openstack_dashboard/dashboards/project/firewalls/workflows.py b/openstack_dashboard/dashboards/project/firewalls/workflows.py index 6e7080392d..68db254497 100644 --- a/openstack_dashboard/dashboards/project/firewalls/workflows.py +++ b/openstack_dashboard/dashboards/project/firewalls/workflows.py @@ -15,8 +15,6 @@ # # @author: KC Wang, Big Switch Networks -import logging - from django.utils.translation import ugettext_lazy as _ # noqa from horizon import exceptions @@ -29,8 +27,6 @@ from openstack_dashboard import api port_validator = validators.validate_port_or_colon_separated_port_range -LOG = logging.getLogger(__name__) - class AddRuleAction(workflows.Action): name = forms.CharField( diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/images/forms.py b/openstack_dashboard/dashboards/project/images_and_snapshots/images/forms.py index 9960543f6b..b131bcf9b3 100644 --- a/openstack_dashboard/dashboards/project/images_and_snapshots/images/forms.py +++ b/openstack_dashboard/dashboards/project/images_and_snapshots/images/forms.py @@ -21,9 +21,6 @@ """ Views for managing images. """ - -import logging - from django.conf import settings # noqa from django.forms import ValidationError # noqa from django.forms.widgets import HiddenInput # noqa @@ -40,9 +37,6 @@ IMAGE_BACKEND_SETTINGS = getattr(settings, 'OPENSTACK_IMAGE_BACKEND', {}) IMAGE_FORMAT_CHOICES = IMAGE_BACKEND_SETTINGS.get('image_formats', []) -LOG = logging.getLogger(__name__) - - class CreateImageForm(forms.SelfHandlingForm): name = forms.CharField(max_length="255", label=_("Name"), required=True) description = forms.CharField(widget=forms.widgets.Textarea(), diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/images/tables.py b/openstack_dashboard/dashboards/project/images_and_snapshots/images/tables.py index a8b4bc5735..5c402059fa 100644 --- a/openstack_dashboard/dashboards/project/images_and_snapshots/images/tables.py +++ b/openstack_dashboard/dashboards/project/images_and_snapshots/images/tables.py @@ -15,7 +15,6 @@ # under the License. from collections import defaultdict # noqa -import logging from django.conf import settings # noqa from django.core.urlresolvers import reverse # noqa @@ -29,9 +28,6 @@ from horizon.utils.memoized import memoized # noqa from openstack_dashboard import api -LOG = logging.getLogger(__name__) - - class LaunchImage(tables.LinkAction): name = "launch_image" verbose_name = _("Launch") diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/images/views.py b/openstack_dashboard/dashboards/project/images_and_snapshots/images/views.py index 275401426a..01a5148a55 100644 --- a/openstack_dashboard/dashboards/project/images_and_snapshots/images/views.py +++ b/openstack_dashboard/dashboards/project/images_and_snapshots/images/views.py @@ -21,9 +21,6 @@ """ Views for managing images. """ - -import logging - from django.core.urlresolvers import reverse # noqa from django.core.urlresolvers import reverse_lazy # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -40,9 +37,6 @@ from openstack_dashboard.dashboards.project.images_and_snapshots.images \ import tabs as project_tabs -LOG = logging.getLogger(__name__) - - class CreateView(forms.ModalFormView): form_class = project_forms.CreateImageForm template_name = 'project/images_and_snapshots/images/create.html' diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/snapshots/forms.py b/openstack_dashboard/dashboards/project/images_and_snapshots/snapshots/forms.py index b6694ed487..ba339cdd38 100644 --- a/openstack_dashboard/dashboards/project/images_and_snapshots/snapshots/forms.py +++ b/openstack_dashboard/dashboards/project/images_and_snapshots/snapshots/forms.py @@ -18,8 +18,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.core.urlresolvers import reverse # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -30,9 +28,6 @@ from horizon import messages from openstack_dashboard import api -LOG = logging.getLogger(__name__) - - class CreateSnapshot(forms.SelfHandlingForm): instance_id = forms.CharField(label=_("Instance ID"), widget=forms.HiddenInput(), diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/snapshots/views.py b/openstack_dashboard/dashboards/project/images_and_snapshots/snapshots/views.py index a5daf67c7d..cd7939c8bf 100644 --- a/openstack_dashboard/dashboards/project/images_and_snapshots/snapshots/views.py +++ b/openstack_dashboard/dashboards/project/images_and_snapshots/snapshots/views.py @@ -21,9 +21,6 @@ """ Views for managing instance snapshots. """ - -import logging - from django.core.urlresolvers import reverse # noqa from django.core.urlresolvers import reverse_lazy # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -37,9 +34,6 @@ from openstack_dashboard.dashboards.project.images_and_snapshots.snapshots \ import forms as project_forms -LOG = logging.getLogger(__name__) - - class CreateView(forms.ModalFormView): form_class = project_forms.CreateSnapshot template_name = 'project/images_and_snapshots/snapshots/create.html' diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/views.py b/openstack_dashboard/dashboards/project/images_and_snapshots/views.py index 14b621cccc..e49b654804 100644 --- a/openstack_dashboard/dashboards/project/images_and_snapshots/views.py +++ b/openstack_dashboard/dashboards/project/images_and_snapshots/views.py @@ -22,9 +22,6 @@ """ Views for managing Images and Snapshots. """ - -import logging - from django.utils.translation import ugettext_lazy as _ # noqa from horizon import exceptions @@ -41,8 +38,6 @@ from openstack_dashboard.dashboards.project.images_and_snapshots.\ from openstack_dashboard.dashboards.project.images_and_snapshots.\ volume_snapshots import tabs as vol_snsh_tabs -LOG = logging.getLogger(__name__) - class IndexView(tables.MultiTableView): table_classes = (images_tables.ImagesTable, diff --git a/openstack_dashboard/dashboards/project/images_and_snapshots/volume_snapshots/tables.py b/openstack_dashboard/dashboards/project/images_and_snapshots/volume_snapshots/tables.py index c8770aba55..17008f5630 100644 --- a/openstack_dashboard/dashboards/project/images_and_snapshots/volume_snapshots/tables.py +++ b/openstack_dashboard/dashboards/project/images_and_snapshots/volume_snapshots/tables.py @@ -14,8 +14,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.core.urlresolvers import reverse # noqa from django.utils.http import urlencode # noqa from django.utils import safestring @@ -30,9 +28,6 @@ from openstack_dashboard.dashboards.project.volumes \ import tables as volume_tables -LOG = logging.getLogger(__name__) - - class DeleteVolumeSnapshot(tables.DeleteAction): data_type_singular = _("Volume Snapshot") data_type_plural = _("Volume Snapshots") diff --git a/openstack_dashboard/dashboards/project/instances/views.py b/openstack_dashboard/dashboards/project/instances/views.py index 02c465edab..30c2853707 100644 --- a/openstack_dashboard/dashboards/project/instances/views.py +++ b/openstack_dashboard/dashboards/project/instances/views.py @@ -21,8 +21,6 @@ """ Views for managing instances. """ -import logging - from django.core.urlresolvers import reverse # noqa from django.core.urlresolvers import reverse_lazy # noqa from django import http @@ -47,9 +45,6 @@ from openstack_dashboard.dashboards.project.instances \ import workflows as project_workflows -LOG = logging.getLogger(__name__) - - class IndexView(tables.DataTableView): table_class = project_tables.InstancesTable template_name = 'project/instances/index.html' diff --git a/openstack_dashboard/dashboards/project/instances/workflows/resize_instance.py b/openstack_dashboard/dashboards/project/instances/workflows/resize_instance.py index 96ea0e1ce8..cc8a556521 100644 --- a/openstack_dashboard/dashboards/project/instances/workflows/resize_instance.py +++ b/openstack_dashboard/dashboards/project/instances/workflows/resize_instance.py @@ -16,7 +16,6 @@ import json -import logging from django.utils.translation import ugettext_lazy as _ # noqa from django.views.decorators.debug import sensitive_variables # noqa @@ -28,9 +27,6 @@ from horizon import workflows from openstack_dashboard import api -LOG = logging.getLogger(__name__) - - class SetFlavorChoiceAction(workflows.Action): old_flavor_id = forms.CharField(required=False, widget=forms.HiddenInput()) old_flavor_name = forms.CharField(label=_("Old Flavor"), diff --git a/openstack_dashboard/dashboards/project/loadbalancers/tables.py b/openstack_dashboard/dashboards/project/loadbalancers/tables.py index 65976cecb7..e084385463 100644 --- a/openstack_dashboard/dashboards/project/loadbalancers/tables.py +++ b/openstack_dashboard/dashboards/project/loadbalancers/tables.py @@ -25,11 +25,6 @@ from horizon import tables from openstack_dashboard import api -import logging - - -LOG = logging.getLogger(__name__) - class AddPoolLink(tables.LinkAction): name = "addpool" diff --git a/openstack_dashboard/dashboards/project/loadbalancers/views.py b/openstack_dashboard/dashboards/project/loadbalancers/views.py index 659eb32e39..d4ef769cea 100644 --- a/openstack_dashboard/dashboards/project/loadbalancers/views.py +++ b/openstack_dashboard/dashboards/project/loadbalancers/views.py @@ -23,8 +23,6 @@ from horizon import messages from horizon import tabs from horizon import workflows -import logging - from openstack_dashboard import api from openstack_dashboard.dashboards.project.loadbalancers \ import forms as project_forms @@ -35,8 +33,6 @@ from openstack_dashboard.dashboards.project.loadbalancers \ import re -LOG = logging.getLogger(__name__) - class IndexView(tabs.TabView): tab_group_class = (project_tabs.LoadBalancerTabs) diff --git a/openstack_dashboard/dashboards/project/loadbalancers/workflows.py b/openstack_dashboard/dashboards/project/loadbalancers/workflows.py index 766c89ad04..675ac158b4 100644 --- a/openstack_dashboard/dashboards/project/loadbalancers/workflows.py +++ b/openstack_dashboard/dashboards/project/loadbalancers/workflows.py @@ -14,8 +14,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.utils.translation import ugettext_lazy as _ # noqa from horizon import exceptions @@ -27,9 +25,6 @@ from horizon import workflows from openstack_dashboard import api -LOG = logging.getLogger(__name__) - - class AddPoolAction(workflows.Action): name = forms.CharField(max_length=80, label=_("Name")) description = forms.CharField( diff --git a/openstack_dashboard/dashboards/project/network_topology/routers/tables.py b/openstack_dashboard/dashboards/project/network_topology/routers/tables.py index eedff2d78f..3f96ed170f 100644 --- a/openstack_dashboard/dashboards/project/network_topology/routers/tables.py +++ b/openstack_dashboard/dashboards/project/network_topology/routers/tables.py @@ -18,8 +18,6 @@ from django.utils.translation import ugettext_lazy as _ # noqa from openstack_dashboard.dashboards.project.routers import\ tables as r_tables -#LOG = logging.getLogger(__name__) - class DeleteRouter(r_tables.DeleteRouter): redirect_url = "horizon:project:network_topology:router" diff --git a/openstack_dashboard/dashboards/project/networks/ports/tables.py b/openstack_dashboard/dashboards/project/networks/ports/tables.py index e28b0c8c98..f35cf39c04 100644 --- a/openstack_dashboard/dashboards/project/networks/ports/tables.py +++ b/openstack_dashboard/dashboards/project/networks/ports/tables.py @@ -14,8 +14,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.core.urlresolvers import reverse # noqa from django import template from django.utils.translation import ugettext_lazy as _ # noqa @@ -23,9 +21,6 @@ from django.utils.translation import ugettext_lazy as _ # noqa from horizon import tables -LOG = logging.getLogger(__name__) - - def get_fixed_ips(port): template_name = 'project/networks/ports/_port_ips.html' context = {"ips": port.fixed_ips} diff --git a/openstack_dashboard/dashboards/project/networks/ports/tabs.py b/openstack_dashboard/dashboards/project/networks/ports/tabs.py index bf63c1216b..61371c440e 100644 --- a/openstack_dashboard/dashboards/project/networks/ports/tabs.py +++ b/openstack_dashboard/dashboards/project/networks/ports/tabs.py @@ -14,8 +14,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.core.urlresolvers import reverse # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -25,9 +23,6 @@ from horizon import tabs from openstack_dashboard import api -LOG = logging.getLogger(__name__) - - class OverviewTab(tabs.Tab): name = _("Overview") slug = "overview" diff --git a/openstack_dashboard/dashboards/project/networks/subnets/tabs.py b/openstack_dashboard/dashboards/project/networks/subnets/tabs.py index 450006c0fa..e56b70af07 100644 --- a/openstack_dashboard/dashboards/project/networks/subnets/tabs.py +++ b/openstack_dashboard/dashboards/project/networks/subnets/tabs.py @@ -14,8 +14,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.core.urlresolvers import reverse # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -25,9 +23,6 @@ from horizon import tabs from openstack_dashboard import api -LOG = logging.getLogger(__name__) - - class OverviewTab(tabs.Tab): name = _("Overview") slug = "overview" diff --git a/openstack_dashboard/dashboards/project/networks/subnets/views.py b/openstack_dashboard/dashboards/project/networks/subnets/views.py index 55c87286b7..57f9bd4d00 100644 --- a/openstack_dashboard/dashboards/project/networks/subnets/views.py +++ b/openstack_dashboard/dashboards/project/networks/subnets/views.py @@ -17,8 +17,6 @@ """ Views for managing Neutron Subnets. """ -import logging - from django.core.urlresolvers import reverse # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -34,9 +32,6 @@ from openstack_dashboard.dashboards.project.networks.subnets \ import workflows as project_workflows -LOG = logging.getLogger(__name__) - - class CreateView(workflows.WorkflowView): workflow_class = project_workflows.CreateSubnet diff --git a/openstack_dashboard/dashboards/project/networks/views.py b/openstack_dashboard/dashboards/project/networks/views.py index 419d03ba52..179e16658d 100644 --- a/openstack_dashboard/dashboards/project/networks/views.py +++ b/openstack_dashboard/dashboards/project/networks/views.py @@ -17,8 +17,6 @@ """ Views for managing Neutron Networks. """ -import logging - from django.core.urlresolvers import reverse_lazy # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -41,9 +39,6 @@ from openstack_dashboard.dashboards.project.networks \ import workflows as project_workflows -LOG = logging.getLogger(__name__) - - class IndexView(tables.DataTableView): table_class = project_tables.NetworksTable template_name = 'project/networks/index.html' diff --git a/openstack_dashboard/dashboards/project/routers/ports/tabs.py b/openstack_dashboard/dashboards/project/routers/ports/tabs.py index 6d134d8da5..3ff7ef9406 100644 --- a/openstack_dashboard/dashboards/project/routers/ports/tabs.py +++ b/openstack_dashboard/dashboards/project/routers/ports/tabs.py @@ -13,7 +13,6 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. -import logging from django.core.urlresolvers import reverse # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -22,8 +21,6 @@ from horizon import exceptions from horizon import tabs from openstack_dashboard import api -LOG = logging.getLogger(__name__) - class OverviewTab(tabs.Tab): name = _("Overview") diff --git a/openstack_dashboard/dashboards/project/routers/ports/views.py b/openstack_dashboard/dashboards/project/routers/ports/views.py index 91559601eb..5b8fde9c9f 100644 --- a/openstack_dashboard/dashboards/project/routers/ports/views.py +++ b/openstack_dashboard/dashboards/project/routers/ports/views.py @@ -14,8 +14,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.core.urlresolvers import reverse # noqa from horizon import exceptions @@ -30,9 +28,6 @@ from openstack_dashboard.dashboards.project.routers.ports \ import tabs as project_tabs -LOG = logging.getLogger(__name__) - - class AddInterfaceView(forms.ModalFormView): form_class = project_forms.AddInterface template_name = 'project/routers/ports/create.html' diff --git a/openstack_dashboard/dashboards/project/routers/views.py b/openstack_dashboard/dashboards/project/routers/views.py index 4ccd8dc023..9a2b744d76 100644 --- a/openstack_dashboard/dashboards/project/routers/views.py +++ b/openstack_dashboard/dashboards/project/routers/views.py @@ -18,8 +18,6 @@ Views for managing Neutron Routers. """ -import logging - from django.core.urlresolvers import reverse_lazy # noqa from django.utils.datastructures import SortedDict # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -37,9 +35,6 @@ from openstack_dashboard.dashboards.project.routers \ import tables as project_tables -LOG = logging.getLogger(__name__) - - class IndexView(tables.DataTableView): table_class = project_tables.RoutersTable template_name = 'project/routers/index.html' diff --git a/openstack_dashboard/dashboards/project/stacks/api.py b/openstack_dashboard/dashboards/project/stacks/api.py index bec494cd2b..c28b1c35f7 100644 --- a/openstack_dashboard/dashboards/project/stacks/api.py +++ b/openstack_dashboard/dashboards/project/stacks/api.py @@ -1,5 +1,4 @@ import json -import logging from openstack_dashboard.api import heat @@ -7,9 +6,6 @@ from openstack_dashboard.dashboards.project.stacks import mappings from openstack_dashboard.dashboards.project.stacks import sro -LOG = logging.getLogger(__name__) - - class Stack(object): pass diff --git a/openstack_dashboard/dashboards/project/stacks/tables.py b/openstack_dashboard/dashboards/project/stacks/tables.py index 7c281e47e8..f0bc731ead 100644 --- a/openstack_dashboard/dashboards/project/stacks/tables.py +++ b/openstack_dashboard/dashboards/project/stacks/tables.py @@ -12,8 +12,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.http import Http404 # noqa from django.template.defaultfilters import timesince # noqa from django.template.defaultfilters import title # noqa @@ -28,8 +26,6 @@ from heatclient import exc from openstack_dashboard import api from openstack_dashboard.dashboards.project.stacks import mappings -LOG = logging.getLogger(__name__) - class LaunchStack(tables.LinkAction): name = "launch" diff --git a/openstack_dashboard/dashboards/project/volumes/tables.py b/openstack_dashboard/dashboards/project/volumes/tables.py index f2a163e53d..c84bf0086a 100644 --- a/openstack_dashboard/dashboards/project/volumes/tables.py +++ b/openstack_dashboard/dashboards/project/volumes/tables.py @@ -14,8 +14,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.core.urlresolvers import NoReverseMatch # noqa from django.core.urlresolvers import reverse # noqa from django.template.defaultfilters import title # noqa @@ -33,8 +31,6 @@ from openstack_dashboard.api import cinder from openstack_dashboard.usage import quotas -LOG = logging.getLogger(__name__) - DELETABLE_STATES = ("available", "error") diff --git a/openstack_dashboard/dashboards/project/volumes/views.py b/openstack_dashboard/dashboards/project/volumes/views.py index c89fc52539..f0631cf8db 100644 --- a/openstack_dashboard/dashboards/project/volumes/views.py +++ b/openstack_dashboard/dashboards/project/volumes/views.py @@ -27,8 +27,6 @@ from horizon import forms from horizon import tables from horizon import tabs -import logging - from openstack_dashboard import api from openstack_dashboard.api import cinder from openstack_dashboard.usage import quotas @@ -42,9 +40,6 @@ from openstack_dashboard.dashboards.project.volumes \ import tabs as project_tabs -LOG = logging.getLogger(__name__) - - class VolumeTableMixIn(object): def _get_volumes(self, search_opts=None): try: diff --git a/openstack_dashboard/dashboards/project/vpn/tables.py b/openstack_dashboard/dashboards/project/vpn/tables.py index 798cf385e2..8d7d62a4b9 100644 --- a/openstack_dashboard/dashboards/project/vpn/tables.py +++ b/openstack_dashboard/dashboards/project/vpn/tables.py @@ -17,8 +17,6 @@ # @author: Tatiana Mazur -import logging - from django.template.defaultfilters import title # noqa from django.utils.translation import ugettext_lazy as _ # noqa @@ -26,9 +24,6 @@ from horizon import tables from horizon.utils import filters -LOG = logging.getLogger(__name__) - - class AddIKEPolicyLink(tables.LinkAction): name = "addikepolicy" verbose_name = _("Add IKE Policy") diff --git a/openstack_dashboard/dashboards/project/vpn/views.py b/openstack_dashboard/dashboards/project/vpn/views.py index e6f64c6840..cef978e7de 100644 --- a/openstack_dashboard/dashboards/project/vpn/views.py +++ b/openstack_dashboard/dashboards/project/vpn/views.py @@ -24,8 +24,6 @@ from horizon import messages from horizon import tabs from horizon import workflows -import logging - from openstack_dashboard import api from openstack_dashboard.dashboards.project.vpn import tabs as vpn_tabs @@ -34,8 +32,6 @@ from openstack_dashboard.dashboards.project.vpn import \ import re -LOG = logging.getLogger(__name__) - class IndexView(tabs.TabbedTableView): tab_group_class = vpn_tabs.VPNTabs diff --git a/openstack_dashboard/dashboards/project/vpn/workflows.py b/openstack_dashboard/dashboards/project/vpn/workflows.py index 52563ae92c..f0541a4228 100644 --- a/openstack_dashboard/dashboards/project/vpn/workflows.py +++ b/openstack_dashboard/dashboards/project/vpn/workflows.py @@ -16,8 +16,6 @@ # # @author: Tatiana Mazur -import logging - from django.utils.translation import ugettext_lazy as _ # noqa from horizon import exceptions @@ -28,9 +26,6 @@ from horizon import workflows from openstack_dashboard import api -LOG = logging.getLogger(__name__) - - class AddVPNServiceAction(workflows.Action): name = forms.CharField(max_length=80, label=_("Name")) description = forms.CharField( diff --git a/openstack_dashboard/usage/base.py b/openstack_dashboard/usage/base.py index c18c3b3665..e9ca94f287 100644 --- a/openstack_dashboard/usage/base.py +++ b/openstack_dashboard/usage/base.py @@ -4,7 +4,6 @@ from csv import DictWriter # noqa from csv import writer # noqa import datetime -import logging from StringIO import StringIO # noqa from django.conf import settings # noqa @@ -22,9 +21,6 @@ from openstack_dashboard import api from openstack_dashboard.usage import quotas -LOG = logging.getLogger(__name__) - - class BaseUsage(object): show_terminated = False diff --git a/openstack_dashboard/usage/views.py b/openstack_dashboard/usage/views.py index 72a895700b..a10bb5756d 100644 --- a/openstack_dashboard/usage/views.py +++ b/openstack_dashboard/usage/views.py @@ -1,12 +1,7 @@ -import logging - from horizon import tables from openstack_dashboard.usage import base -LOG = logging.getLogger(__name__) - - class UsageView(tables.DataTableView): usage_class = None show_terminated = True