diff --git a/disaster_recovery/actions/tables.py b/disaster_recovery/actions/tables.py index 54c3eee..2416c60 100644 --- a/disaster_recovery/actions/tables.py +++ b/disaster_recovery/actions/tables.py @@ -10,8 +10,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django import shortcuts from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ungettext_lazy @@ -22,9 +20,6 @@ from django.core.urlresolvers import reverse import disaster_recovery.api.api as freezer_api -LOG = logging.getLogger(__name__) - - class DeleteAction(tables.DeleteAction): name = "delete" classes = ("btn-danger",) diff --git a/disaster_recovery/actions/views.py b/disaster_recovery/actions/views.py index 121fad0..2c57f76 100644 --- a/disaster_recovery/actions/views.py +++ b/disaster_recovery/actions/views.py @@ -10,7 +10,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging import pprint from django.core.urlresolvers import reverse_lazy @@ -27,9 +26,6 @@ from disaster_recovery.actions.workflows import action as action_workflow from disaster_recovery.utils import shield -LOG = logging.getLogger(__name__) - - class IndexView(tables.DataTableView): name = _("Actions") slug = "actions" diff --git a/disaster_recovery/actions/workflows/action.py b/disaster_recovery/actions/workflows/action.py index fdae745..2e8cd74 100644 --- a/disaster_recovery/actions/workflows/action.py +++ b/disaster_recovery/actions/workflows/action.py @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -import logging - from django import shortcuts from django.utils.translation import ugettext_lazy as _ @@ -24,9 +22,6 @@ from horizon import workflows import disaster_recovery.api.api as freezer_api -LOG = logging.getLogger(__name__) - - class ActionConfigurationAction(workflows.Action): action_id = forms.CharField( widget=forms.HiddenInput(), diff --git a/disaster_recovery/backups/tables.py b/disaster_recovery/backups/tables.py index b14a949..c087b8b 100644 --- a/disaster_recovery/backups/tables.py +++ b/disaster_recovery/backups/tables.py @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -import logging - from django.core.urlresolvers import reverse from django.utils import safestring from django.utils.translation import ugettext_lazy as _ @@ -24,9 +22,6 @@ from horizon.utils import functions as utils from disaster_recovery.utils import timestamp_to_string -LOG = logging.getLogger(__name__) - - class Restore(tables.LinkAction): name = "restore" verbose_name = _("Restore") diff --git a/disaster_recovery/backups/views.py b/disaster_recovery/backups/views.py index 0eaf163..9d3ca93 100644 --- a/disaster_recovery/backups/views.py +++ b/disaster_recovery/backups/views.py @@ -11,7 +11,6 @@ # under the License. import datetime -import logging import pprint from django.template.defaultfilters import date as django_date @@ -28,9 +27,6 @@ from disaster_recovery.backups.workflows import restore as restore_workflow from disaster_recovery.utils import shield -LOG = logging.getLogger(__name__) - - class IndexView(tables.DataTableView): name = _("Backups") slug = "backups" diff --git a/disaster_recovery/backups/workflows/restore.py b/disaster_recovery/backups/workflows/restore.py index db49e23..3cf62d7 100644 --- a/disaster_recovery/backups/workflows/restore.py +++ b/disaster_recovery/backups/workflows/restore.py @@ -12,9 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. - -import logging - from django.core.exceptions import ValidationError from django.utils.translation import ugettext_lazy as _ @@ -25,9 +22,6 @@ from horizon import workflows import disaster_recovery.api.api as freezer_api -LOG = logging.getLogger(__name__) - - class DestinationAction(workflows.MembershipAction): path = forms.CharField(label=_("Destination Path"), help_text=_("The path in which the backup should be" diff --git a/disaster_recovery/clients/tables.py b/disaster_recovery/clients/tables.py index c241214..407b0c7 100644 --- a/disaster_recovery/clients/tables.py +++ b/disaster_recovery/clients/tables.py @@ -10,8 +10,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ungettext_lazy @@ -22,9 +20,6 @@ import disaster_recovery.api.api as freezer_api from disaster_recovery.utils import shield -LOG = logging.getLogger(__name__) - - class Filter(tables.FilterAction): filter_type = "server" filter_choices = (("exact", "Exact text", True),) diff --git a/disaster_recovery/clients/views.py b/disaster_recovery/clients/views.py index f57d737..1747510 100644 --- a/disaster_recovery/clients/views.py +++ b/disaster_recovery/clients/views.py @@ -10,7 +10,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging import pprint from django.utils.translation import ugettext_lazy as _ @@ -24,9 +23,6 @@ from disaster_recovery.clients import tables as freezer_tables from disaster_recovery.utils import shield -LOG = logging.getLogger(__name__) - - class IndexView(tables.DataTableView): name = _("Clients") slug = "clients" diff --git a/disaster_recovery/jobs/tables.py b/disaster_recovery/jobs/tables.py index 4d7cbb6..3bf14be 100644 --- a/disaster_recovery/jobs/tables.py +++ b/disaster_recovery/jobs/tables.py @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -import logging - from django import shortcuts from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ungettext_lazy @@ -26,9 +24,6 @@ import disaster_recovery.api.api as freezer_api from disaster_recovery.utils import shield -LOG = logging.getLogger(__name__) - - class ObjectFilterAction(tables.FilterAction): def allowed(self, request, datum): return bool(self.table.kwargs['job_id']) diff --git a/disaster_recovery/jobs/views.py b/disaster_recovery/jobs/views.py index 5c4a2d3..9b32b6d 100644 --- a/disaster_recovery/jobs/views.py +++ b/disaster_recovery/jobs/views.py @@ -10,8 +10,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from horizon import browsers from horizon import workflows @@ -25,9 +23,6 @@ import disaster_recovery.jobs.browsers as project_browsers from disaster_recovery.utils import shield -LOG = logging.getLogger(__name__) - - class JobsView(browsers.ResourceBrowserView): browser_class = project_browsers.ContainerBrowser template_name = "disaster_recovery/jobs/browser.html" diff --git a/disaster_recovery/jobs/workflows/actions.py b/disaster_recovery/jobs/workflows/actions.py index 4ad3581..95f5850 100644 --- a/disaster_recovery/jobs/workflows/actions.py +++ b/disaster_recovery/jobs/workflows/actions.py @@ -10,8 +10,6 @@ # License for the specific language governing permissions and limitations # under the License. -import logging - from django import shortcuts from django.utils.translation import ugettext_lazy as _ @@ -22,9 +20,6 @@ from horizon import workflows import disaster_recovery.api.api as freezer_api -LOG = logging.getLogger(__name__) - - class ActionsConfigurationAction(workflows.Action): pass diff --git a/disaster_recovery/jobs/workflows/create.py b/disaster_recovery/jobs/workflows/create.py index c9ba710..1da25b0 100644 --- a/disaster_recovery/jobs/workflows/create.py +++ b/disaster_recovery/jobs/workflows/create.py @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -import logging - import datetime from django import shortcuts @@ -26,9 +24,6 @@ from horizon import workflows import disaster_recovery.api.api as freezer_api -LOG = logging.getLogger(__name__) - - class ActionsConfigurationAction(workflows.Action): pass diff --git a/disaster_recovery/jobs/workflows/update_actions.py b/disaster_recovery/jobs/workflows/update_actions.py index 7583c2e..20ad24f 100644 --- a/disaster_recovery/jobs/workflows/update_actions.py +++ b/disaster_recovery/jobs/workflows/update_actions.py @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -import logging - from django import shortcuts from django.utils.translation import ugettext_lazy as _ @@ -24,9 +22,6 @@ from horizon import workflows import disaster_recovery.api.api as freezer_api -LOG = logging.getLogger(__name__) - - class ActionsConfigurationAction(workflows.Action): actions = forms.CharField( required=False) diff --git a/disaster_recovery/jobs/workflows/update_job.py b/disaster_recovery/jobs/workflows/update_job.py index 6f5922c..d8f5107 100644 --- a/disaster_recovery/jobs/workflows/update_job.py +++ b/disaster_recovery/jobs/workflows/update_job.py @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -import logging - import datetime from django import shortcuts @@ -26,9 +24,6 @@ from horizon import workflows import disaster_recovery.api.api as freezer_api -LOG = logging.getLogger(__name__) - - class InfoConfigurationAction(workflows.Action): description = forms.CharField( diff --git a/disaster_recovery/sessions/tables.py b/disaster_recovery/sessions/tables.py index 06a551e..5fbf205 100644 --- a/disaster_recovery/sessions/tables.py +++ b/disaster_recovery/sessions/tables.py @@ -12,9 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. - -import logging - from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ungettext_lazy from django.core.urlresolvers import reverse @@ -25,9 +22,6 @@ import disaster_recovery.api.api as freezer_api from disaster_recovery.utils import shield -LOG = logging.getLogger(__name__) - - class ObjectFilterAction(tables.FilterAction): def allowed(self, request, datum): return bool(self.table.kwargs['session_id']) diff --git a/disaster_recovery/sessions/views.py b/disaster_recovery/sessions/views.py index 6be2a93..7e7eada 100644 --- a/disaster_recovery/sessions/views.py +++ b/disaster_recovery/sessions/views.py @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -import logging - from horizon import browsers from horizon import workflows @@ -25,9 +23,6 @@ from disaster_recovery.sessions.workflows import create from disaster_recovery.utils import shield -LOG = logging.getLogger(__name__) - - class SessionsView(browsers.ResourceBrowserView): browser_class = project_browsers.SessionBrowser template_name = "disaster_recovery/sessions/browser.html" diff --git a/disaster_recovery/sessions/workflows/attach.py b/disaster_recovery/sessions/workflows/attach.py index b4ec6eb..d2d45ff 100644 --- a/disaster_recovery/sessions/workflows/attach.py +++ b/disaster_recovery/sessions/workflows/attach.py @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -import logging - from django.utils.translation import ugettext_lazy as _ from django.core.urlresolvers import reverse @@ -24,9 +22,6 @@ from horizon import workflows import disaster_recovery.api.api as freezer_api -LOG = logging.getLogger(__name__) - - class SessionConfigurationAction(workflows.Action): session_id = forms.ChoiceField( help_text=_("Set a session to attach this job"), diff --git a/disaster_recovery/sessions/workflows/create.py b/disaster_recovery/sessions/workflows/create.py index e02a3c9..8503cdc 100644 --- a/disaster_recovery/sessions/workflows/create.py +++ b/disaster_recovery/sessions/workflows/create.py @@ -13,7 +13,6 @@ # limitations under the License. import datetime -import logging from django.core.urlresolvers import reverse from django.utils.translation import ugettext_lazy as _ @@ -26,9 +25,6 @@ from horizon import workflows import disaster_recovery.api.api as freezer_api -LOG = logging.getLogger(__name__) - - class SessionConfigurationAction(workflows.Action): description = forms.CharField( label=_("Session Name"),