Fix pep8 error

Fix pep8 error
1.E265 block comment should start with '# '
2.H238  old style class declaration, use new style (inherit from `object`)

Change-Id: I100b7c277c93a137ce9702fe9df2a7a43df9fb51
This commit is contained in:
zhurong
2016-05-29 04:46:52 -04:00
parent 03882e6cd4
commit b001c4f6c8
5 changed files with 6 additions and 6 deletions

View File

@@ -70,13 +70,13 @@ class ApplicationsTable(tables.DataTable):
uuid = tables.Column('uuid', verbose_name=_('UUID'),
link=("horizon:solum:applications:detail"))
name = tables.Column('name', verbose_name=_('Name'))
#git_url = tables.Column('git_url', verbose_name=_('GitUrl'))
# git_url = tables.Column('git_url', verbose_name=_('GitUrl'))
description = tables.Column('description', verbose_name=_('Description'))
def get_object_id(self, app):
return app.uuid
class Meta:
class Meta(object):
name = "applications"
verbose_name = _("Applications")
table_actions = (CreateApplication, DeleteApplication)

View File

@@ -36,7 +36,7 @@ class GitUrlAction(workflows.Action):
def __init__(self, request, *args, **kwargs):
super(GitUrlAction, self).__init__(request, *args, **kwargs)
class Meta:
class Meta(object):
name = _("Select git url for the application")
help_text_template = ("applications/_create_general_help.html")

View File

@@ -40,7 +40,7 @@ class ConfigAssemblyAction(workflows.Action):
widget=forms.HiddenInput(),
initial=plan_uri)
class Meta:
class Meta(object):
name = _("Configure name and description")
help_text_template = "applications/_launch_configure_help.html"

View File

@@ -63,7 +63,7 @@ class AssembliesTable(tables.DataTable):
def get_object_id(self, app):
return app.uuid
class Meta:
class Meta(object):
name = "assemblies"
verbose_name = _("Assemblies")
table_actions = (DeleteAssembly,)

View File

@@ -14,7 +14,7 @@
# limitations under the License.
from openstack_dashboard import exceptions
#from solumclient.openstack.common.apiclient import exceptions as solumclient
# from solumclient.openstack.common.apiclient import exceptions as solumclient
NOT_FOUND = exceptions.NOT_FOUND
RECOVERABLE = exceptions.RECOVERABLE