Remove unused logging

These codes are not useful.

Change-Id: Id2ce428fef37794dba4772aedaed6a53ac10b934
Closes-bug: #1529541
This commit is contained in:
LiuNanke 2016-01-06 03:00:37 +08:00
parent d773bac4e8
commit 19d6a0fcea
33 changed files with 0 additions and 127 deletions

View File

@ -11,8 +11,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 horizon import exceptions
@ -22,8 +20,6 @@ from sahara_dashboard.api import sahara as saharaclient
from sahara_dashboard.content.data_processing. \
utils import workflow_helpers
LOG = logging.getLogger(__name__)
class UploadFileForm(forms.SelfHandlingForm,
workflow_helpers.PluginAndVersionMixin):

View File

@ -11,8 +11,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import logging
from django.core import urlresolvers
from django.template import defaultfilters as filters
from django.utils import http
@ -23,8 +21,6 @@ from horizon import tables
from sahara_dashboard.api import sahara as saharaclient
LOG = logging.getLogger(__name__)
class ClusterTemplatesFilterAction(tables.FilterAction):
filter_type = "server"

View File

@ -11,8 +11,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import logging
from django.core.urlresolvers import reverse_lazy
from django.utils.translation import ugettext_lazy as _
@ -38,8 +36,6 @@ import sahara_dashboard.content.data_processing. \
import sahara_dashboard.content.data_processing. \
cluster_templates.workflows.edit as edit_flow
LOG = logging.getLogger(__name__)
class ClusterTemplatesView(tables.DataTableView):
table_class = ct_tables.ClusterTemplatesTable

View File

@ -13,7 +13,6 @@
import base64
import json
import logging
from django.utils.translation import ugettext_lazy as _
@ -25,8 +24,6 @@ import sahara_dashboard.content.data_processing. \
import sahara_dashboard.content.data_processing.utils. \
workflow_helpers as wf_helpers
LOG = logging.getLogger(__name__)
class CopyClusterTemplate(create_flow.ConfigureClusterTemplate):
success_message = _("Cluster Template copy %s created")

View File

@ -13,7 +13,6 @@
import base64
import json
import logging
from django.utils.translation import ugettext_lazy as _
from saharaclient.api import base as api_base
@ -31,8 +30,6 @@ from sahara_dashboard.content.data_processing. \
import sahara_dashboard.content.data_processing. \
utils.workflow_helpers as whelpers
LOG = logging.getLogger(__name__)
class SelectPluginAction(workflows.Action):
hidden_create_field = forms.CharField(

View File

@ -13,7 +13,6 @@
import base64
import json
import logging
from django.utils.translation import ugettext_lazy as _
@ -28,8 +27,6 @@ import sahara_dashboard.content.data_processing. \
import sahara_dashboard.content.data_processing. \
utils.workflow_helpers as whelpers
LOG = logging.getLogger(__name__)
class EditClusterTemplate(copy_flow.CopyClusterTemplate):
success_message = _("Cluster Template %s updated")

View File

@ -11,8 +11,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import logging
from django.http import Http404 # noqa
from django.template.loader import render_to_string
from django.utils.translation import ugettext_lazy as _
@ -27,9 +25,6 @@ from sahara_dashboard.api import sahara as saharaclient
from saharaclient.api import base as api_base
LOG = logging.getLogger(__name__)
class ClustersFilterAction(tables.FilterAction):
filter_type = "server"
filter_choices = (('name', _("Name"), True),

View File

@ -29,9 +29,6 @@ import sahara_dashboard.content.data_processing. \
from saharaclient.api import base as api_base
import logging
LOG = logging.getLogger(__name__)
KEYPAIR_IMPORT_URL = "horizon:project:access_and_security:keypairs:import"
BASE_IMAGE_URL = "horizon:project:data_processing.data_image_registry:register"

View File

@ -13,7 +13,6 @@
import base64
import json
import logging
from django.utils.translation import ugettext_lazy as _
@ -28,8 +27,6 @@ from sahara_dashboard.content.data_processing.utils import workflow_helpers
from saharaclient.api import base as api_base
LOG = logging.getLogger(__name__)
class NodeGroupsStep(clt_create_flow.ConfigureNodegroups):
pass

View File

@ -11,8 +11,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import logging
from django import template
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ungettext_lazy
@ -22,9 +20,6 @@ from horizon import tables
from sahara_dashboard.api import sahara as saharaclient
LOG = logging.getLogger(__name__)
class EditTagsAction(tables.LinkAction):
name = "edit_tags"
verbose_name = _("Edit Tags")

View File

@ -12,7 +12,6 @@
# limitations under the License.
import json
import logging
from django.core.urlresolvers import reverse_lazy
from django.utils.translation import ugettext_lazy as _
@ -31,9 +30,6 @@ from sahara_dashboard.content. \
data_processing.data_image_registry.tables import ImageRegistryTable
LOG = logging.getLogger(__name__)
class ImageRegistryView(tables.DataTableView):
table_class = ImageRegistryTable
template_name = (

View File

@ -11,15 +11,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import logging
from django.template import defaultfilters as filters
from django.utils.translation import ugettext_lazy as _
from horizon import tables
LOG = logging.getLogger(__name__)
class PluginsTable(tables.DataTable):
title = tables.Column("title",

View File

@ -11,8 +11,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 horizon import exceptions
@ -25,8 +23,6 @@ import sahara_dashboard.content.data_processing. \
import sahara_dashboard.content.data_processing. \
data_plugins.tabs as p_tabs
LOG = logging.getLogger(__name__)
class PluginsView(tables.DataTableView):
table_class = p_tables.PluginsTable

View File

@ -11,8 +11,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
@ -20,8 +18,6 @@ from horizon import tables
from sahara_dashboard.api import sahara as saharaclient
LOG = logging.getLogger(__name__)
class CreateDataSource(tables.LinkAction):
name = "create data source"

View File

@ -11,8 +11,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 horizon import exceptions
@ -33,8 +31,6 @@ import sahara_dashboard.content.data_processing. \
import sahara_dashboard.content.data_processing. \
data_sources.workflows.edit as edit_flow
LOG = logging.getLogger(__name__)
class DataSourcesView(tables.DataTableView):
table_class = ds_tables.DataSourcesTable

View File

@ -11,8 +11,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 horizon import exceptions
@ -23,8 +21,6 @@ from sahara_dashboard.api import manila as manilaclient
from sahara_dashboard.api import sahara as saharaclient
from sahara_dashboard.content.data_processing.utils import helpers
LOG = logging.getLogger(__name__)
class GeneralConfigAction(workflows.Action):
data_source_name = forms.CharField(label=_("Name"))

View File

@ -11,8 +11,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 _
import six
@ -22,8 +20,6 @@ from sahara_dashboard.api import sahara as saharaclient
from sahara_dashboard.content.data_processing \
.data_sources.workflows import create
LOG = logging.getLogger(__name__)
class EditDataSource(create.CreateDataSource):
slug = "edit_data_source"

View File

@ -11,7 +11,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import logging
import six
import uuid
@ -28,8 +27,6 @@ from horizon import messages
from sahara_dashboard.api import manila as manilaclient
from sahara_dashboard.api import sahara as saharaclient
LOG = logging.getLogger(__name__)
class LabeledInput(widgets.TextInput):
def render(self, name, values, attrs=None):

View File

@ -11,8 +11,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
@ -23,9 +21,6 @@ from sahara_dashboard.api import sahara as saharaclient
from saharaclient.api import base as api_base
LOG = logging.getLogger(__name__)
class CreateJobBinary(tables.LinkAction):
name = "create"
verbose_name = _("Create Job Binary")

View File

@ -11,8 +11,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.core.urlresolvers import reverse_lazy
from django import http
@ -38,9 +36,6 @@ import sahara_dashboard.content.data_processing. \
job_binaries.tabs as _tabs
LOG = logging.getLogger(__name__)
class JobBinariesView(tables.DataTableView):
table_class = jb_tables.JobBinariesTable
template_name = 'project/data_processing.job_binaries/job_binaries.html'

View File

@ -11,8 +11,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.http import Http404 # noqa
from django.utils import http
@ -29,8 +27,6 @@ from sahara_dashboard.api import sahara as saharaclient
from sahara_dashboard.content.data_processing. \
jobs import tables as j_t
LOG = logging.getLogger(__name__)
class JobExecutionsFilterAction(tables.FilterAction):
filter_type = "server"

View File

@ -11,8 +11,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 horizon import exceptions
@ -28,8 +26,6 @@ from sahara_dashboard.content.data_processing.job_executions \
import sahara_dashboard.content.data_processing. \
job_executions.tabs as _tabs
LOG = logging.getLogger(__name__)
class JobExecutionsView(tables.DataTableView):
SEARCH_MAPPING = {"cluster": "cluster.name",

View File

@ -11,8 +11,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import logging
from django.core import urlresolvers
from django.utils import http
from django.utils.translation import ugettext_lazy as _
@ -22,8 +20,6 @@ from horizon import tables
from sahara_dashboard.api import sahara as saharaclient
LOG = logging.getLogger(__name__)
class JobsFilterAction(tables.FilterAction):
filter_type = "server"

View File

@ -12,7 +12,6 @@
# limitations under the License.
import json
import logging
from django import http
from django.utils.translation import ugettext_lazy as _
@ -35,8 +34,6 @@ import sahara_dashboard.content.data_processing.jobs. \
import sahara_dashboard.content.data_processing.jobs. \
workflows.launch as launch_flow
LOG = logging.getLogger(__name__)
class JobsView(tables.DataTableView):
table_class = _tables.JobsTable

View File

@ -12,7 +12,6 @@
# limitations under the License.
import json
import logging
from django.utils.translation import ugettext_lazy as _
@ -28,8 +27,6 @@ import sahara_dashboard.content.data_processing \
from sahara_dashboard.api import sahara as saharaclient
LOG = logging.getLogger(__name__)
JOB_BINARY_CREATE_URL = ("horizon:project:data_processing.job_binaries"
":create-job-binary")

View File

@ -12,7 +12,6 @@
# limitations under the License.
import json
import logging
from django.utils.translation import ugettext_lazy as _
import six
@ -30,8 +29,6 @@ import sahara_dashboard.content.data_processing. \
utils.workflow_helpers as whelpers
LOG = logging.getLogger(__name__)
DATA_SOURCE_CREATE_URL = ("horizon:project:data_processing.data_sources"
":create-data-source")

View File

@ -11,8 +11,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import logging
from django.template import defaultfilters as filters
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ungettext_lazy
@ -20,8 +18,6 @@ from django.utils.translation import ungettext_lazy
from horizon import tables
from sahara_dashboard.api import sahara as saharaclient
LOG = logging.getLogger(__name__)
class NodeGroupTemplatesFilterAction(tables.FilterAction):
filter_type = "server"

View File

@ -11,8 +11,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 horizon import exceptions
@ -35,8 +33,6 @@ import sahara_dashboard.content.data_processing. \
import sahara_dashboard.content.data_processing. \
nodegroup_templates.workflows.edit as edit_flow
LOG = logging.getLogger(__name__)
class NodegroupTemplatesView(tables.DataTableView):
table_class = _tables.NodegroupTemplatesTable

View File

@ -11,8 +11,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 horizon import exceptions
@ -22,8 +20,6 @@ from sahara_dashboard.api import sahara as saharaclient
import sahara_dashboard.content.data_processing. \
nodegroup_templates.workflows.create as create_flow
LOG = logging.getLogger(__name__)
class CopyNodegroupTemplate(create_flow.ConfigureNodegroupTemplate):
success_message = _("Node Group Template copy %s created")

View File

@ -12,7 +12,6 @@
# limitations under the License.
import itertools
import logging
import uuid
from django.utils import encoding
@ -40,8 +39,6 @@ from sahara_dashboard.content.data_processing.utils \
from sahara_dashboard.content.data_processing.utils \
import workflow_helpers
LOG = logging.getLogger(__name__)
class GeneralConfigAction(workflows.Action):
nodegroup_name = forms.CharField(label=_("Template Name"))

View File

@ -11,8 +11,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 saharaclient.api import base as api_base
@ -28,8 +26,6 @@ import sahara_dashboard.content.data_processing. \
from sahara_dashboard.content.data_processing.utils \
import workflow_helpers
LOG = logging.getLogger(__name__)
class EditNodegroupTemplate(copy_flow.CopyNodegroupTemplate):
success_message = _("Node Group Template %s updated")

View File

@ -11,8 +11,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 horizon import exceptions
@ -23,9 +21,6 @@ import sahara_dashboard.content.data_processing. \
utils.workflow_helpers as whelpers
LOG = logging.getLogger(__name__)
def anti_affinity_field():
return forms.MultipleChoiceField(
label=_("Use anti-affinity groups for: "),

View File

@ -10,7 +10,6 @@
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import logging
from django.core.urlresolvers import reverse_lazy
from django import http
@ -28,9 +27,6 @@ import sahara_dashboard.content.data_processing.wizard \
.forms as wizforms
LOG = logging.getLogger(__name__)
class WizardView(horizon_views.APIView):
template_name = 'project/data_processing.wizard/wizard.html'
page_title = _("Data Processing Guides")