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:
@@ -76,7 +76,7 @@ class ApplicationsTable(tables.DataTable):
|
|||||||
def get_object_id(self, app):
|
def get_object_id(self, app):
|
||||||
return app.uuid
|
return app.uuid
|
||||||
|
|
||||||
class Meta:
|
class Meta(object):
|
||||||
name = "applications"
|
name = "applications"
|
||||||
verbose_name = _("Applications")
|
verbose_name = _("Applications")
|
||||||
table_actions = (CreateApplication, DeleteApplication)
|
table_actions = (CreateApplication, DeleteApplication)
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ class GitUrlAction(workflows.Action):
|
|||||||
def __init__(self, request, *args, **kwargs):
|
def __init__(self, request, *args, **kwargs):
|
||||||
super(GitUrlAction, self).__init__(request, *args, **kwargs)
|
super(GitUrlAction, self).__init__(request, *args, **kwargs)
|
||||||
|
|
||||||
class Meta:
|
class Meta(object):
|
||||||
name = _("Select git url for the application")
|
name = _("Select git url for the application")
|
||||||
help_text_template = ("applications/_create_general_help.html")
|
help_text_template = ("applications/_create_general_help.html")
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ class ConfigAssemblyAction(workflows.Action):
|
|||||||
widget=forms.HiddenInput(),
|
widget=forms.HiddenInput(),
|
||||||
initial=plan_uri)
|
initial=plan_uri)
|
||||||
|
|
||||||
class Meta:
|
class Meta(object):
|
||||||
name = _("Configure name and description")
|
name = _("Configure name and description")
|
||||||
help_text_template = "applications/_launch_configure_help.html"
|
help_text_template = "applications/_launch_configure_help.html"
|
||||||
|
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ class AssembliesTable(tables.DataTable):
|
|||||||
def get_object_id(self, app):
|
def get_object_id(self, app):
|
||||||
return app.uuid
|
return app.uuid
|
||||||
|
|
||||||
class Meta:
|
class Meta(object):
|
||||||
name = "assemblies"
|
name = "assemblies"
|
||||||
verbose_name = _("Assemblies")
|
verbose_name = _("Assemblies")
|
||||||
table_actions = (DeleteAssembly,)
|
table_actions = (DeleteAssembly,)
|
||||||
|
|||||||
Reference in New Issue
Block a user