Remove unused logging
These codes are not useful. Change-Id: Id2ce428fef37794dba4772aedaed6a53ac10b934 Closes-bug: #1529541
This commit is contained in:
parent
d773bac4e8
commit
19d6a0fcea
@ -11,8 +11,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 horizon import exceptions
|
from horizon import exceptions
|
||||||
@ -22,8 +20,6 @@ from sahara_dashboard.api import sahara as saharaclient
|
|||||||
from sahara_dashboard.content.data_processing. \
|
from sahara_dashboard.content.data_processing. \
|
||||||
utils import workflow_helpers
|
utils import workflow_helpers
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class UploadFileForm(forms.SelfHandlingForm,
|
class UploadFileForm(forms.SelfHandlingForm,
|
||||||
workflow_helpers.PluginAndVersionMixin):
|
workflow_helpers.PluginAndVersionMixin):
|
||||||
|
@ -11,8 +11,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 import urlresolvers
|
from django.core import urlresolvers
|
||||||
from django.template import defaultfilters as filters
|
from django.template import defaultfilters as filters
|
||||||
from django.utils import http
|
from django.utils import http
|
||||||
@ -23,8 +21,6 @@ from horizon import tables
|
|||||||
|
|
||||||
from sahara_dashboard.api import sahara as saharaclient
|
from sahara_dashboard.api import sahara as saharaclient
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class ClusterTemplatesFilterAction(tables.FilterAction):
|
class ClusterTemplatesFilterAction(tables.FilterAction):
|
||||||
filter_type = "server"
|
filter_type = "server"
|
||||||
|
@ -11,8 +11,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_lazy
|
from django.core.urlresolvers import reverse_lazy
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
@ -38,8 +36,6 @@ import sahara_dashboard.content.data_processing. \
|
|||||||
import sahara_dashboard.content.data_processing. \
|
import sahara_dashboard.content.data_processing. \
|
||||||
cluster_templates.workflows.edit as edit_flow
|
cluster_templates.workflows.edit as edit_flow
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class ClusterTemplatesView(tables.DataTableView):
|
class ClusterTemplatesView(tables.DataTableView):
|
||||||
table_class = ct_tables.ClusterTemplatesTable
|
table_class = ct_tables.ClusterTemplatesTable
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
|
|
||||||
import base64
|
import base64
|
||||||
import json
|
import json
|
||||||
import logging
|
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
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. \
|
import sahara_dashboard.content.data_processing.utils. \
|
||||||
workflow_helpers as wf_helpers
|
workflow_helpers as wf_helpers
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class CopyClusterTemplate(create_flow.ConfigureClusterTemplate):
|
class CopyClusterTemplate(create_flow.ConfigureClusterTemplate):
|
||||||
success_message = _("Cluster Template copy %s created")
|
success_message = _("Cluster Template copy %s created")
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
|
|
||||||
import base64
|
import base64
|
||||||
import json
|
import json
|
||||||
import logging
|
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
from saharaclient.api import base as api_base
|
from saharaclient.api import base as api_base
|
||||||
@ -31,8 +30,6 @@ from sahara_dashboard.content.data_processing. \
|
|||||||
import sahara_dashboard.content.data_processing. \
|
import sahara_dashboard.content.data_processing. \
|
||||||
utils.workflow_helpers as whelpers
|
utils.workflow_helpers as whelpers
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class SelectPluginAction(workflows.Action):
|
class SelectPluginAction(workflows.Action):
|
||||||
hidden_create_field = forms.CharField(
|
hidden_create_field = forms.CharField(
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
|
|
||||||
import base64
|
import base64
|
||||||
import json
|
import json
|
||||||
import logging
|
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
@ -28,8 +27,6 @@ import sahara_dashboard.content.data_processing. \
|
|||||||
import sahara_dashboard.content.data_processing. \
|
import sahara_dashboard.content.data_processing. \
|
||||||
utils.workflow_helpers as whelpers
|
utils.workflow_helpers as whelpers
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class EditClusterTemplate(copy_flow.CopyClusterTemplate):
|
class EditClusterTemplate(copy_flow.CopyClusterTemplate):
|
||||||
success_message = _("Cluster Template %s updated")
|
success_message = _("Cluster Template %s updated")
|
||||||
|
@ -11,8 +11,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.http import Http404 # noqa
|
from django.http import Http404 # noqa
|
||||||
from django.template.loader import render_to_string
|
from django.template.loader import render_to_string
|
||||||
from django.utils.translation import ugettext_lazy as _
|
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
|
from saharaclient.api import base as api_base
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class ClustersFilterAction(tables.FilterAction):
|
class ClustersFilterAction(tables.FilterAction):
|
||||||
filter_type = "server"
|
filter_type = "server"
|
||||||
filter_choices = (('name', _("Name"), True),
|
filter_choices = (('name', _("Name"), True),
|
||||||
|
@ -29,9 +29,6 @@ import sahara_dashboard.content.data_processing. \
|
|||||||
|
|
||||||
from saharaclient.api import base as api_base
|
from saharaclient.api import base as api_base
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
KEYPAIR_IMPORT_URL = "horizon:project:access_and_security:keypairs:import"
|
KEYPAIR_IMPORT_URL = "horizon:project:access_and_security:keypairs:import"
|
||||||
BASE_IMAGE_URL = "horizon:project:data_processing.data_image_registry:register"
|
BASE_IMAGE_URL = "horizon:project:data_processing.data_image_registry:register"
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
|
|
||||||
import base64
|
import base64
|
||||||
import json
|
import json
|
||||||
import logging
|
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
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
|
from saharaclient.api import base as api_base
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class NodeGroupsStep(clt_create_flow.ConfigureNodegroups):
|
class NodeGroupsStep(clt_create_flow.ConfigureNodegroups):
|
||||||
pass
|
pass
|
||||||
|
@ -11,8 +11,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 template
|
from django import template
|
||||||
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 horizon import tables
|
|||||||
from sahara_dashboard.api import sahara as saharaclient
|
from sahara_dashboard.api import sahara as saharaclient
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class EditTagsAction(tables.LinkAction):
|
class EditTagsAction(tables.LinkAction):
|
||||||
name = "edit_tags"
|
name = "edit_tags"
|
||||||
verbose_name = _("Edit Tags")
|
verbose_name = _("Edit Tags")
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import logging
|
|
||||||
|
|
||||||
from django.core.urlresolvers import reverse_lazy
|
from django.core.urlresolvers import reverse_lazy
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
@ -31,9 +30,6 @@ from sahara_dashboard.content. \
|
|||||||
data_processing.data_image_registry.tables import ImageRegistryTable
|
data_processing.data_image_registry.tables import ImageRegistryTable
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class ImageRegistryView(tables.DataTableView):
|
class ImageRegistryView(tables.DataTableView):
|
||||||
table_class = ImageRegistryTable
|
table_class = ImageRegistryTable
|
||||||
template_name = (
|
template_name = (
|
||||||
|
@ -11,15 +11,11 @@
|
|||||||
# 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.template import defaultfilters as filters
|
from django.template import defaultfilters as filters
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
from horizon import tables
|
from horizon import tables
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class PluginsTable(tables.DataTable):
|
class PluginsTable(tables.DataTable):
|
||||||
title = tables.Column("title",
|
title = tables.Column("title",
|
||||||
|
@ -11,8 +11,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 horizon import exceptions
|
from horizon import exceptions
|
||||||
@ -25,8 +23,6 @@ import sahara_dashboard.content.data_processing. \
|
|||||||
import sahara_dashboard.content.data_processing. \
|
import sahara_dashboard.content.data_processing. \
|
||||||
data_plugins.tabs as p_tabs
|
data_plugins.tabs as p_tabs
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class PluginsView(tables.DataTableView):
|
class PluginsView(tables.DataTableView):
|
||||||
table_class = p_tables.PluginsTable
|
table_class = p_tables.PluginsTable
|
||||||
|
@ -11,8 +11,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
|
||||||
|
|
||||||
@ -20,8 +18,6 @@ from horizon import tables
|
|||||||
|
|
||||||
from sahara_dashboard.api import sahara as saharaclient
|
from sahara_dashboard.api import sahara as saharaclient
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class CreateDataSource(tables.LinkAction):
|
class CreateDataSource(tables.LinkAction):
|
||||||
name = "create data source"
|
name = "create data source"
|
||||||
|
@ -11,8 +11,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 horizon import exceptions
|
from horizon import exceptions
|
||||||
@ -33,8 +31,6 @@ import sahara_dashboard.content.data_processing. \
|
|||||||
import sahara_dashboard.content.data_processing. \
|
import sahara_dashboard.content.data_processing. \
|
||||||
data_sources.workflows.edit as edit_flow
|
data_sources.workflows.edit as edit_flow
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class DataSourcesView(tables.DataTableView):
|
class DataSourcesView(tables.DataTableView):
|
||||||
table_class = ds_tables.DataSourcesTable
|
table_class = ds_tables.DataSourcesTable
|
||||||
|
@ -11,8 +11,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 horizon import exceptions
|
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.api import sahara as saharaclient
|
||||||
from sahara_dashboard.content.data_processing.utils import helpers
|
from sahara_dashboard.content.data_processing.utils import helpers
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class GeneralConfigAction(workflows.Action):
|
class GeneralConfigAction(workflows.Action):
|
||||||
data_source_name = forms.CharField(label=_("Name"))
|
data_source_name = forms.CharField(label=_("Name"))
|
||||||
|
@ -11,8 +11,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 _
|
||||||
import six
|
import six
|
||||||
|
|
||||||
@ -22,8 +20,6 @@ from sahara_dashboard.api import sahara as saharaclient
|
|||||||
from sahara_dashboard.content.data_processing \
|
from sahara_dashboard.content.data_processing \
|
||||||
.data_sources.workflows import create
|
.data_sources.workflows import create
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class EditDataSource(create.CreateDataSource):
|
class EditDataSource(create.CreateDataSource):
|
||||||
slug = "edit_data_source"
|
slug = "edit_data_source"
|
||||||
|
@ -11,7 +11,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 six
|
import six
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
@ -28,8 +27,6 @@ from horizon import messages
|
|||||||
from sahara_dashboard.api import manila as manilaclient
|
from sahara_dashboard.api import manila as manilaclient
|
||||||
from sahara_dashboard.api import sahara as saharaclient
|
from sahara_dashboard.api import sahara as saharaclient
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class LabeledInput(widgets.TextInput):
|
class LabeledInput(widgets.TextInput):
|
||||||
def render(self, name, values, attrs=None):
|
def render(self, name, values, attrs=None):
|
||||||
|
@ -11,8 +11,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
|
||||||
|
|
||||||
@ -23,9 +21,6 @@ from sahara_dashboard.api import sahara as saharaclient
|
|||||||
from saharaclient.api import base as api_base
|
from saharaclient.api import base as api_base
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class CreateJobBinary(tables.LinkAction):
|
class CreateJobBinary(tables.LinkAction):
|
||||||
name = "create"
|
name = "create"
|
||||||
verbose_name = _("Create Job Binary")
|
verbose_name = _("Create Job Binary")
|
||||||
|
@ -11,8 +11,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.core.urlresolvers import reverse_lazy
|
from django.core.urlresolvers import reverse_lazy
|
||||||
from django import http
|
from django import http
|
||||||
@ -38,9 +36,6 @@ import sahara_dashboard.content.data_processing. \
|
|||||||
job_binaries.tabs as _tabs
|
job_binaries.tabs as _tabs
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class JobBinariesView(tables.DataTableView):
|
class JobBinariesView(tables.DataTableView):
|
||||||
table_class = jb_tables.JobBinariesTable
|
table_class = jb_tables.JobBinariesTable
|
||||||
template_name = 'project/data_processing.job_binaries/job_binaries.html'
|
template_name = 'project/data_processing.job_binaries/job_binaries.html'
|
||||||
|
@ -11,8 +11,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.http import Http404 # noqa
|
from django.http import Http404 # noqa
|
||||||
from django.utils import http
|
from django.utils import http
|
||||||
@ -29,8 +27,6 @@ from sahara_dashboard.api import sahara as saharaclient
|
|||||||
from sahara_dashboard.content.data_processing. \
|
from sahara_dashboard.content.data_processing. \
|
||||||
jobs import tables as j_t
|
jobs import tables as j_t
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class JobExecutionsFilterAction(tables.FilterAction):
|
class JobExecutionsFilterAction(tables.FilterAction):
|
||||||
filter_type = "server"
|
filter_type = "server"
|
||||||
|
@ -11,8 +11,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 horizon import exceptions
|
from horizon import exceptions
|
||||||
@ -28,8 +26,6 @@ from sahara_dashboard.content.data_processing.job_executions \
|
|||||||
import sahara_dashboard.content.data_processing. \
|
import sahara_dashboard.content.data_processing. \
|
||||||
job_executions.tabs as _tabs
|
job_executions.tabs as _tabs
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class JobExecutionsView(tables.DataTableView):
|
class JobExecutionsView(tables.DataTableView):
|
||||||
SEARCH_MAPPING = {"cluster": "cluster.name",
|
SEARCH_MAPPING = {"cluster": "cluster.name",
|
||||||
|
@ -11,8 +11,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 import urlresolvers
|
from django.core import urlresolvers
|
||||||
from django.utils import http
|
from django.utils import http
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
@ -22,8 +20,6 @@ from horizon import tables
|
|||||||
|
|
||||||
from sahara_dashboard.api import sahara as saharaclient
|
from sahara_dashboard.api import sahara as saharaclient
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class JobsFilterAction(tables.FilterAction):
|
class JobsFilterAction(tables.FilterAction):
|
||||||
filter_type = "server"
|
filter_type = "server"
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import logging
|
|
||||||
|
|
||||||
from django import http
|
from django import http
|
||||||
from django.utils.translation import ugettext_lazy as _
|
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. \
|
import sahara_dashboard.content.data_processing.jobs. \
|
||||||
workflows.launch as launch_flow
|
workflows.launch as launch_flow
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class JobsView(tables.DataTableView):
|
class JobsView(tables.DataTableView):
|
||||||
table_class = _tables.JobsTable
|
table_class = _tables.JobsTable
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import logging
|
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
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
|
from sahara_dashboard.api import sahara as saharaclient
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
JOB_BINARY_CREATE_URL = ("horizon:project:data_processing.job_binaries"
|
JOB_BINARY_CREATE_URL = ("horizon:project:data_processing.job_binaries"
|
||||||
":create-job-binary")
|
":create-job-binary")
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import logging
|
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
import six
|
import six
|
||||||
@ -30,8 +29,6 @@ import sahara_dashboard.content.data_processing. \
|
|||||||
utils.workflow_helpers as whelpers
|
utils.workflow_helpers as whelpers
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
DATA_SOURCE_CREATE_URL = ("horizon:project:data_processing.data_sources"
|
DATA_SOURCE_CREATE_URL = ("horizon:project:data_processing.data_sources"
|
||||||
":create-data-source")
|
":create-data-source")
|
||||||
|
|
||||||
|
@ -11,8 +11,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.template import defaultfilters as filters
|
from django.template import defaultfilters as filters
|
||||||
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
|
||||||
@ -20,8 +18,6 @@ from django.utils.translation import ungettext_lazy
|
|||||||
from horizon import tables
|
from horizon import tables
|
||||||
from sahara_dashboard.api import sahara as saharaclient
|
from sahara_dashboard.api import sahara as saharaclient
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class NodeGroupTemplatesFilterAction(tables.FilterAction):
|
class NodeGroupTemplatesFilterAction(tables.FilterAction):
|
||||||
filter_type = "server"
|
filter_type = "server"
|
||||||
|
@ -11,8 +11,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 horizon import exceptions
|
from horizon import exceptions
|
||||||
@ -35,8 +33,6 @@ import sahara_dashboard.content.data_processing. \
|
|||||||
import sahara_dashboard.content.data_processing. \
|
import sahara_dashboard.content.data_processing. \
|
||||||
nodegroup_templates.workflows.edit as edit_flow
|
nodegroup_templates.workflows.edit as edit_flow
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class NodegroupTemplatesView(tables.DataTableView):
|
class NodegroupTemplatesView(tables.DataTableView):
|
||||||
table_class = _tables.NodegroupTemplatesTable
|
table_class = _tables.NodegroupTemplatesTable
|
||||||
|
@ -11,8 +11,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 horizon import exceptions
|
from horizon import exceptions
|
||||||
@ -22,8 +20,6 @@ from sahara_dashboard.api import sahara as saharaclient
|
|||||||
import sahara_dashboard.content.data_processing. \
|
import sahara_dashboard.content.data_processing. \
|
||||||
nodegroup_templates.workflows.create as create_flow
|
nodegroup_templates.workflows.create as create_flow
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class CopyNodegroupTemplate(create_flow.ConfigureNodegroupTemplate):
|
class CopyNodegroupTemplate(create_flow.ConfigureNodegroupTemplate):
|
||||||
success_message = _("Node Group Template copy %s created")
|
success_message = _("Node Group Template copy %s created")
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
import itertools
|
import itertools
|
||||||
import logging
|
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from django.utils import encoding
|
from django.utils import encoding
|
||||||
@ -40,8 +39,6 @@ from sahara_dashboard.content.data_processing.utils \
|
|||||||
from sahara_dashboard.content.data_processing.utils \
|
from sahara_dashboard.content.data_processing.utils \
|
||||||
import workflow_helpers
|
import workflow_helpers
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class GeneralConfigAction(workflows.Action):
|
class GeneralConfigAction(workflows.Action):
|
||||||
nodegroup_name = forms.CharField(label=_("Template Name"))
|
nodegroup_name = forms.CharField(label=_("Template Name"))
|
||||||
|
@ -11,8 +11,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 saharaclient.api import base as api_base
|
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 \
|
from sahara_dashboard.content.data_processing.utils \
|
||||||
import workflow_helpers
|
import workflow_helpers
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class EditNodegroupTemplate(copy_flow.CopyNodegroupTemplate):
|
class EditNodegroupTemplate(copy_flow.CopyNodegroupTemplate):
|
||||||
success_message = _("Node Group Template %s updated")
|
success_message = _("Node Group Template %s updated")
|
||||||
|
@ -11,8 +11,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 horizon import exceptions
|
from horizon import exceptions
|
||||||
@ -23,9 +21,6 @@ import sahara_dashboard.content.data_processing. \
|
|||||||
utils.workflow_helpers as whelpers
|
utils.workflow_helpers as whelpers
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
def anti_affinity_field():
|
def anti_affinity_field():
|
||||||
return forms.MultipleChoiceField(
|
return forms.MultipleChoiceField(
|
||||||
label=_("Use anti-affinity groups for: "),
|
label=_("Use anti-affinity groups for: "),
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
# implied.
|
# implied.
|
||||||
# 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_lazy
|
from django.core.urlresolvers import reverse_lazy
|
||||||
from django import http
|
from django import http
|
||||||
@ -28,9 +27,6 @@ import sahara_dashboard.content.data_processing.wizard \
|
|||||||
.forms as wizforms
|
.forms as wizforms
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class WizardView(horizon_views.APIView):
|
class WizardView(horizon_views.APIView):
|
||||||
template_name = 'project/data_processing.wizard/wizard.html'
|
template_name = 'project/data_processing.wizard/wizard.html'
|
||||||
page_title = _("Data Processing Guides")
|
page_title = _("Data Processing Guides")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user