Merge "Remove not required parentheses for tables.Column(link=..)"

This commit is contained in:
Jenkins 2015-02-24 06:30:18 +00:00 committed by Gerrit Code Review
commit 1655989c5a
10 changed files with 12 additions and 12 deletions

View File

@ -20,7 +20,7 @@ from horizon.templatetags import sizeformat
class AdminHypervisorsTable(tables.DataTable):
hostname = tables.Column("hypervisor_hostname",
link=("horizon:admin:hypervisors:detail"),
link="horizon:admin:hypervisors:detail",
attrs={'data-type': 'naturalSort'},
verbose_name=_("Hostname"))
@ -66,7 +66,7 @@ class AdminHypervisorsTable(tables.DataTable):
class AdminHypervisorInstancesTable(tables.DataTable):
name = tables.Column("name",
link=("horizon:admin:instances:detail"),
link="horizon:admin:instances:detail",
verbose_name=_("Instance Name"))
instance_id = tables.Column("uuid",

View File

@ -125,7 +125,7 @@ class AdminInstancesTable(tables.DataTable):
verbose_name=_("Host"),
classes=('nowrap-col',))
name = tables.Column("name",
link=("horizon:admin:instances:detail"),
link="horizon:admin:instances:detail",
verbose_name=_("Name"))
image_name = tables.Column("image_name",
verbose_name=_("Image Name"))

View File

@ -217,7 +217,7 @@ class UsersTable(tables.DataTable):
("false", False)
)
name = tables.Column('name',
link=("horizon:identity:users:detail"),
link="horizon:identity:users:detail",
verbose_name=_('User Name'),
form_field=forms.CharField(),
update_action=UpdateCell)

View File

@ -133,7 +133,7 @@ class Instance(object):
class InstancesTable(tables.DataTable):
name = tables.Column("name",
link=("horizon:project:instances:detail"),
link="horizon:project:instances:detail",
verbose_name=_("Name"))
internal_ip = tables.Column("internal_ip",

View File

@ -77,7 +77,7 @@ class JobBinariesTable(tables.DataTable):
name = tables.Column(
"name",
verbose_name=_("Name"),
link=("horizon:project:data_processing.job_binaries:details"))
link="horizon:project:data_processing.job_binaries:details")
type = tables.Column("url",
verbose_name=_("Url"))
description = tables.Column("description",

View File

@ -102,7 +102,7 @@ class ChoosePlugin(tables.LinkAction):
class JobsTable(tables.DataTable):
name = tables.Column("name",
verbose_name=_("Name"),
link=("horizon:project:data_processing.jobs:details"))
link="horizon:project:data_processing.jobs:details")
description = tables.Column("description",
verbose_name=_("Description"))

View File

@ -81,7 +81,7 @@ class NodegroupTemplatesTable(tables.DataTable):
name = tables.Column(
"name",
verbose_name=_("Name"),
link=("horizon:project:data_processing.nodegroup_templates:details"))
link="horizon:project:data_processing.nodegroup_templates:details")
plugin_name = tables.Column("plugin_name",
verbose_name=_("Plugin"))
hadoop_version = tables.Column("hadoop_version",

View File

@ -283,7 +283,7 @@ class InstancesTable(tables.DataTable):
u"Restart Required")),
)
name = tables.Column("name",
link=("horizon:project:databases:detail"),
link="horizon:project:databases:detail",
verbose_name=_("Instance Name"))
datastore = tables.Column(get_datastore,
verbose_name=_("Datastore"))
@ -349,7 +349,7 @@ def is_incremental(obj):
class InstanceBackupsTable(tables.DataTable):
name = tables.Column("name",
link=("horizon:project:database_backups:detail"),
link="horizon:project:database_backups:detail",
verbose_name=_("Name"))
created = tables.Column("created", verbose_name=_("Created"),
filters=[filters.parse_isotime])

View File

@ -238,7 +238,7 @@ class ImagesTable(tables.DataTable):
("deleted", pgettext_lazy("Current status of an Image", u"Deleted")),
)
name = tables.Column(get_image_name,
link=("horizon:project:images:images:detail"),
link="horizon:project:images:images:detail",
verbose_name=_("Image Name"))
image_type = tables.Column(get_image_type,
verbose_name=_("Type"),

View File

@ -981,7 +981,7 @@ class InstancesTable(tables.DataTable):
("shelved_offloaded", True),
)
name = tables.Column("name",
link=("horizon:project:instances:detail"),
link="horizon:project:instances:detail",
verbose_name=_("Instance Name"))
image_name = tables.Column("image_name",
verbose_name=_("Image Name"))