Remove logging import unused
This patch removes logging import unused in disaster_recovery Change-Id: I453254206e4c91f005018cad9eff512a85a40df0
This commit is contained in:
parent
e36e074afb
commit
42eb07b3f4
@ -10,8 +10,6 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
from django import shortcuts
|
from django import shortcuts
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
from django.utils.translation import ungettext_lazy
|
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
|
import disaster_recovery.api.api as freezer_api
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class DeleteAction(tables.DeleteAction):
|
class DeleteAction(tables.DeleteAction):
|
||||||
name = "delete"
|
name = "delete"
|
||||||
classes = ("btn-danger",)
|
classes = ("btn-danger",)
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import logging
|
|
||||||
import pprint
|
import pprint
|
||||||
|
|
||||||
from django.core.urlresolvers import reverse_lazy
|
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
|
from disaster_recovery.utils import shield
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class IndexView(tables.DataTableView):
|
class IndexView(tables.DataTableView):
|
||||||
name = _("Actions")
|
name = _("Actions")
|
||||||
slug = "actions"
|
slug = "actions"
|
||||||
|
@ -12,8 +12,6 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
from django import shortcuts
|
from django import shortcuts
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
@ -24,9 +22,6 @@ from horizon import workflows
|
|||||||
import disaster_recovery.api.api as freezer_api
|
import disaster_recovery.api.api as freezer_api
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class ActionConfigurationAction(workflows.Action):
|
class ActionConfigurationAction(workflows.Action):
|
||||||
action_id = forms.CharField(
|
action_id = forms.CharField(
|
||||||
widget=forms.HiddenInput(),
|
widget=forms.HiddenInput(),
|
||||||
|
@ -12,8 +12,6 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
from django.core.urlresolvers import reverse
|
from django.core.urlresolvers import reverse
|
||||||
from django.utils import safestring
|
from django.utils import safestring
|
||||||
from django.utils.translation import ugettext_lazy as _
|
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
|
from disaster_recovery.utils import timestamp_to_string
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class Restore(tables.LinkAction):
|
class Restore(tables.LinkAction):
|
||||||
name = "restore"
|
name = "restore"
|
||||||
verbose_name = _("Restore")
|
verbose_name = _("Restore")
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
import logging
|
|
||||||
import pprint
|
import pprint
|
||||||
|
|
||||||
from django.template.defaultfilters import date as django_date
|
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
|
from disaster_recovery.utils import shield
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class IndexView(tables.DataTableView):
|
class IndexView(tables.DataTableView):
|
||||||
name = _("Backups")
|
name = _("Backups")
|
||||||
slug = "backups"
|
slug = "backups"
|
||||||
|
@ -12,9 +12,6 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
from django.core.exceptions import ValidationError
|
from django.core.exceptions import ValidationError
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
@ -25,9 +22,6 @@ from horizon import workflows
|
|||||||
import disaster_recovery.api.api as freezer_api
|
import disaster_recovery.api.api as freezer_api
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class DestinationAction(workflows.MembershipAction):
|
class DestinationAction(workflows.MembershipAction):
|
||||||
path = forms.CharField(label=_("Destination Path"),
|
path = forms.CharField(label=_("Destination Path"),
|
||||||
help_text=_("The path in which the backup should be"
|
help_text=_("The path in which the backup should be"
|
||||||
|
@ -10,8 +10,6 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
from django.utils.translation import ungettext_lazy
|
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
|
from disaster_recovery.utils import shield
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class Filter(tables.FilterAction):
|
class Filter(tables.FilterAction):
|
||||||
filter_type = "server"
|
filter_type = "server"
|
||||||
filter_choices = (("exact", "Exact text", True),)
|
filter_choices = (("exact", "Exact text", True),)
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import logging
|
|
||||||
import pprint
|
import pprint
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
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
|
from disaster_recovery.utils import shield
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class IndexView(tables.DataTableView):
|
class IndexView(tables.DataTableView):
|
||||||
name = _("Clients")
|
name = _("Clients")
|
||||||
slug = "clients"
|
slug = "clients"
|
||||||
|
@ -12,8 +12,6 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
from django import shortcuts
|
from django import shortcuts
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
from django.utils.translation import ungettext_lazy
|
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
|
from disaster_recovery.utils import shield
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class ObjectFilterAction(tables.FilterAction):
|
class ObjectFilterAction(tables.FilterAction):
|
||||||
def allowed(self, request, datum):
|
def allowed(self, request, datum):
|
||||||
return bool(self.table.kwargs['job_id'])
|
return bool(self.table.kwargs['job_id'])
|
||||||
|
@ -10,8 +10,6 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
from horizon import browsers
|
from horizon import browsers
|
||||||
from horizon import workflows
|
from horizon import workflows
|
||||||
|
|
||||||
@ -25,9 +23,6 @@ import disaster_recovery.jobs.browsers as project_browsers
|
|||||||
from disaster_recovery.utils import shield
|
from disaster_recovery.utils import shield
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class JobsView(browsers.ResourceBrowserView):
|
class JobsView(browsers.ResourceBrowserView):
|
||||||
browser_class = project_browsers.ContainerBrowser
|
browser_class = project_browsers.ContainerBrowser
|
||||||
template_name = "disaster_recovery/jobs/browser.html"
|
template_name = "disaster_recovery/jobs/browser.html"
|
||||||
|
@ -10,8 +10,6 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
from django import shortcuts
|
from django import shortcuts
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
@ -22,9 +20,6 @@ from horizon import workflows
|
|||||||
import disaster_recovery.api.api as freezer_api
|
import disaster_recovery.api.api as freezer_api
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class ActionsConfigurationAction(workflows.Action):
|
class ActionsConfigurationAction(workflows.Action):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -12,8 +12,6 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
from django import shortcuts
|
from django import shortcuts
|
||||||
@ -26,9 +24,6 @@ from horizon import workflows
|
|||||||
import disaster_recovery.api.api as freezer_api
|
import disaster_recovery.api.api as freezer_api
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class ActionsConfigurationAction(workflows.Action):
|
class ActionsConfigurationAction(workflows.Action):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -12,8 +12,6 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
from django import shortcuts
|
from django import shortcuts
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
@ -24,9 +22,6 @@ from horizon import workflows
|
|||||||
import disaster_recovery.api.api as freezer_api
|
import disaster_recovery.api.api as freezer_api
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class ActionsConfigurationAction(workflows.Action):
|
class ActionsConfigurationAction(workflows.Action):
|
||||||
actions = forms.CharField(
|
actions = forms.CharField(
|
||||||
required=False)
|
required=False)
|
||||||
|
@ -12,8 +12,6 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
from django import shortcuts
|
from django import shortcuts
|
||||||
@ -26,9 +24,6 @@ from horizon import workflows
|
|||||||
import disaster_recovery.api.api as freezer_api
|
import disaster_recovery.api.api as freezer_api
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class InfoConfigurationAction(workflows.Action):
|
class InfoConfigurationAction(workflows.Action):
|
||||||
|
|
||||||
description = forms.CharField(
|
description = forms.CharField(
|
||||||
|
@ -12,9 +12,6 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
from django.utils.translation import ungettext_lazy
|
from django.utils.translation import ungettext_lazy
|
||||||
from django.core.urlresolvers import reverse
|
from django.core.urlresolvers import reverse
|
||||||
@ -25,9 +22,6 @@ import disaster_recovery.api.api as freezer_api
|
|||||||
from disaster_recovery.utils import shield
|
from disaster_recovery.utils import shield
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class ObjectFilterAction(tables.FilterAction):
|
class ObjectFilterAction(tables.FilterAction):
|
||||||
def allowed(self, request, datum):
|
def allowed(self, request, datum):
|
||||||
return bool(self.table.kwargs['session_id'])
|
return bool(self.table.kwargs['session_id'])
|
||||||
|
@ -12,8 +12,6 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
from horizon import browsers
|
from horizon import browsers
|
||||||
from horizon import workflows
|
from horizon import workflows
|
||||||
|
|
||||||
@ -25,9 +23,6 @@ from disaster_recovery.sessions.workflows import create
|
|||||||
from disaster_recovery.utils import shield
|
from disaster_recovery.utils import shield
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class SessionsView(browsers.ResourceBrowserView):
|
class SessionsView(browsers.ResourceBrowserView):
|
||||||
browser_class = project_browsers.SessionBrowser
|
browser_class = project_browsers.SessionBrowser
|
||||||
template_name = "disaster_recovery/sessions/browser.html"
|
template_name = "disaster_recovery/sessions/browser.html"
|
||||||
|
@ -12,8 +12,6 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
from django.core.urlresolvers import reverse
|
from django.core.urlresolvers import reverse
|
||||||
|
|
||||||
@ -24,9 +22,6 @@ from horizon import workflows
|
|||||||
import disaster_recovery.api.api as freezer_api
|
import disaster_recovery.api.api as freezer_api
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class SessionConfigurationAction(workflows.Action):
|
class SessionConfigurationAction(workflows.Action):
|
||||||
session_id = forms.ChoiceField(
|
session_id = forms.ChoiceField(
|
||||||
help_text=_("Set a session to attach this job"),
|
help_text=_("Set a session to attach this job"),
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
import logging
|
|
||||||
|
|
||||||
from django.core.urlresolvers import reverse
|
from django.core.urlresolvers import reverse
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
@ -26,9 +25,6 @@ from horizon import workflows
|
|||||||
import disaster_recovery.api.api as freezer_api
|
import disaster_recovery.api.api as freezer_api
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class SessionConfigurationAction(workflows.Action):
|
class SessionConfigurationAction(workflows.Action):
|
||||||
description = forms.CharField(
|
description = forms.CharField(
|
||||||
label=_("Session Name"),
|
label=_("Session Name"),
|
||||||
|
Loading…
Reference in New Issue
Block a user