The openstack_dashboard.dashboards.admin.projects.tables ModuleΒΆ

class openstack_dashboard.dashboards.admin.projects.tables.CreateProject(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

CreateProject.allowed(request, project)[source]
CreateProject.base_options = {'__module__': 'openstack_dashboard.dashboards.admin.projects.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'update': <function update at 0x4d1dcf8>, 'policy_rules': (('identity', 'identity:create_project'),), 'get_link_url': <function get_link_url at 0x4d1dc08>, 'allowed': <function allowed at 0x6aefc08>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x4d1df50>, 'get_default_classes': <function get_default_classes at 0x4d1d2a8>, 'update': <function update at 0x4d1dcf8>, 'get_policy_target': <function get_policy_target at 0x4d1de60>, '_allowed': <function _allowed at 0x4d1dc80>, '__repr__': <function __repr__ at 0x4d1db90>, 'allowed': <function allowed at 0x4d1dde8>, 'get_default_attrs': <function get_default_attrs at 0x4d1d9b0>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x4d1ded8>}, '__init__': <function __init__ at 0x4d1da28>, 'name': 'create', 'url': 'horizon:admin:projects:create', 'data_type_matched': <function data_type_matched at 0x4d1df50>, 'get_default_classes': <function get_default_classes at 0x4d1d2a8>, 'get_policy_target': <function get_policy_target at 0x4d1de60>, '_allowed': <function _allowed at 0x4d1dc80>, 'classes': ('btn-launch', 'ajax-modal'), '__repr__': <function __repr__ at 0x4d1db90>, 'get_default_attrs': <function get_default_attrs at 0x4d1d9b0>, 'verbose_name': <django.utils.functional.__proxy__ object at 0x6aa3310>, '__doc__': 'A table action which is simply a link rather than a form POST.\n\n .. attribute:: name\n\n Required. The short name or "slug" representing this\n action. This name should not be changed at runtime.\n\n .. attribute:: verbose_name\n\n A string which will be rendered as the link text. (Required)\n\n .. attribute:: url\n\n A string or a callable which resolves to a url to be used as the link\n target. You must either define the ``url`` attribute or override\n the ``get_link_url`` method on the class.\n\n .. attribute:: allowed_data_types\n\n A list that contains the allowed data types of the action. If the\n datum\'s type is in this list, the action will be shown on the row\n for the datum.\n\n Defaults to be an empty list (``[]``). When set to empty, the action\n will accept any kind of data.\n '}
CreateProject.classes = ('btn-launch', 'ajax-modal')
CreateProject.name = 'create'
CreateProject.policy_rules = (('identity', 'identity:create_project'),)
CreateProject.url = 'horizon:admin:projects:create'
CreateProject.verbose_name = <django.utils.functional.__proxy__ object at 0x6aa3310>
class openstack_dashboard.dashboards.admin.projects.tables.DeleteTenantsAction(**kwargs)[source]

Bases: horizon.tables.actions.DeleteAction

DeleteTenantsAction.allowed(request, project)[source]
DeleteTenantsAction.base_options = {'__module__': 'openstack_dashboard.dashboards.admin.projects.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_singular': <django.utils.functional.__proxy__ object at 0x6aa3050>, 'update': <function update at 0x4d00848>, 'policy_rules': (('identity', 'identity:delete_project'),), 'get_success_url': <function get_success_url at 0x4d00140>, 'get_param_name': <function get_param_name at 0x4d1daa0>, 'allowed': <function allowed at 0x6aefd70>, 'handle': <function handle at 0x4d00c08>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x4d1df50>, 'get_default_classes': <function get_default_classes at 0x4d1d2a8>, 'update': <function update at 0x4d1dcf8>, 'get_policy_target': <function get_policy_target at 0x4d1de60>, '_allowed': <function _allowed at 0x4d1dc80>, '__repr__': <function __repr__ at 0x4d1db90>, 'allowed': <function allowed at 0x4d1dde8>, 'get_default_attrs': <function get_default_attrs at 0x4d1d9b0>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x4d1ded8>}, '__init__': <function __init__ at 0x4d00230>, 'name': 'delete', 'data_type_plural': <django.utils.functional.__proxy__ object at 0x6aa3250>, 'data_type_matched': <function data_type_matched at 0x4d1df50>, 'get_default_classes': <function get_default_classes at 0x4d00488>, 'get_policy_target': <function get_policy_target at 0x4d1de60>, '_allowed': <function _allowed at 0x4d00aa0>, '_get_action_name': <function _get_action_name at 0x4d000c8>, '__repr__': <function __repr__ at 0x4d1db90>, 'action': <function action at 0x4d002a8>, 'get_default_attrs': <function get_default_attrs at 0x4d1d9b0>, '__doc__': 'Doc missing.', 'delete': <function delete at 0x6aefde8>}
DeleteTenantsAction.data_type_plural = <django.utils.functional.__proxy__ object at 0x6aa3250>
DeleteTenantsAction.data_type_singular = <django.utils.functional.__proxy__ object at 0x6aa3050>
DeleteTenantsAction.delete(request, obj_id)[source]
DeleteTenantsAction.policy_rules = (('identity', 'identity:delete_project'),)
class openstack_dashboard.dashboards.admin.projects.tables.ModifyQuotas(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

ModifyQuotas.base_options = {'__module__': 'openstack_dashboard.dashboards.admin.projects.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'update': <function update at 0x4d1dcf8>, 'policy_rules': (('compute', 'compute_extension:quotas:update'),), 'get_link_url': <function get_link_url at 0x6aefcf8>, 'allowed': <function allowed at 0x4d1dde8>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x4d1df50>, 'get_default_classes': <function get_default_classes at 0x4d1d2a8>, 'update': <function update at 0x4d1dcf8>, 'get_policy_target': <function get_policy_target at 0x4d1de60>, '_allowed': <function _allowed at 0x4d1dc80>, '__repr__': <function __repr__ at 0x4d1db90>, 'allowed': <function allowed at 0x4d1dde8>, 'get_default_attrs': <function get_default_attrs at 0x4d1d9b0>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x4d1ded8>}, '__init__': <function __init__ at 0x4d1da28>, 'name': 'quotas', 'url': 'horizon:admin:projects:update', 'data_type_matched': <function data_type_matched at 0x4d1df50>, 'get_default_classes': <function get_default_classes at 0x4d1d2a8>, 'get_policy_target': <function get_policy_target at 0x4d1de60>, '_allowed': <function _allowed at 0x4d1dc80>, 'classes': ('ajax-modal', 'btn-edit'), '__repr__': <function __repr__ at 0x4d1db90>, 'get_default_attrs': <function get_default_attrs at 0x4d1d9b0>, 'verbose_name': <django.utils.functional.__proxy__ object at 0x6aa3d10>, '__doc__': 'A table action which is simply a link rather than a form POST.\n\n .. attribute:: name\n\n Required. The short name or "slug" representing this\n action. This name should not be changed at runtime.\n\n .. attribute:: verbose_name\n\n A string which will be rendered as the link text. (Required)\n\n .. attribute:: url\n\n A string or a callable which resolves to a url to be used as the link\n target. You must either define the ``url`` attribute or override\n the ``get_link_url`` method on the class.\n\n .. attribute:: allowed_data_types\n\n A list that contains the allowed data types of the action. If the\n datum\'s type is in this list, the action will be shown on the row\n for the datum.\n\n Defaults to be an empty list (``[]``). When set to empty, the action\n will accept any kind of data.\n '}
ModifyQuotas.classes = ('ajax-modal', 'btn-edit')
ModifyQuotas.get_link_url(project)[source]
ModifyQuotas.name = 'quotas'
ModifyQuotas.policy_rules = (('compute', 'compute_extension:quotas:update'),)
ModifyQuotas.url = 'horizon:admin:projects:update'
ModifyQuotas.verbose_name = <django.utils.functional.__proxy__ object at 0x6aa3d10>
class openstack_dashboard.dashboards.admin.projects.tables.TenantFilterAction(**kwargs)[source]

Bases: horizon.tables.actions.FilterAction

TenantFilterAction.base_options = {'__module__': 'openstack_dashboard.dashboards.admin.projects.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'update': <function update at 0x4d1dcf8>, 'get_policy_target': <function get_policy_target at 0x4d1de60>, 'allowed': <function allowed at 0x4d1dde8>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x4d1df50>, 'get_default_classes': <function get_default_classes at 0x4d1d2a8>, 'update': <function update at 0x4d1dcf8>, 'get_policy_target': <function get_policy_target at 0x4d1de60>, '_allowed': <function _allowed at 0x4d1dc80>, '__repr__': <function __repr__ at 0x4d1db90>, 'allowed': <function allowed at 0x4d1dde8>, 'get_default_attrs': <function get_default_attrs at 0x4d1d9b0>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x4d1ded8>}, '__init__': <function __init__ at 0x4d1d668>, 'filter': <function filter at 0x6aefe60>, 'name': 'filter', 'data_type_matched': <function data_type_matched at 0x4d1df50>, 'get_default_classes': <function get_default_classes at 0x4d1d578>, 'get_param_name': <function get_param_name at 0x4d1d5f0>, 'data_type_filter': <function data_type_filter at 0x4d1d848>, '_allowed': <function _allowed at 0x4d1dc80>, '__repr__': <function __repr__ at 0x4d1db90>, 'get_default_attrs': <function get_default_attrs at 0x4d1d9b0>, 'assign_type_string': <function assign_type_string at 0x4d1d938>, '__doc__': 'A base class representing a filter action for a table.\n\n .. attribute:: name\n\n The short name or "slug" representing this action. Defaults to\n ``"filter"``.\n\n .. attribute:: verbose_name\n\n A descriptive name used for display purposes. Defaults to the\n value of ``name`` with the first letter of each word capitalized.\n\n .. attribute:: param_name\n\n A string representing the name of the request parameter used for the\n search term. Default: ``"q"``.\n\n .. attribute: filter_type\n\n A string representing the type of this filter. Default: ``"query"``.\n\n .. attribute: needs_preloading\n\n If True, the filter function will be called for the initial\n GET request with an empty ``filter_string``, regardless of the\n value of ``method``.\n '}
TenantFilterAction.filter(table, tenants, filter_string)[source]

Really naive case-insensitive search.

class openstack_dashboard.dashboards.admin.projects.tables.TenantsTable(request, data=None, needs_form_wrapper=None, **kwargs)[source]

Bases: horizon.tables.base.DataTable

class TenantsTable.Meta[source]
TenantsTable.Meta.name = 'tenants'
TenantsTable.Meta.pagination_param = 'tenant_marker'
TenantsTable.Meta.row_actions = (<class 'openstack_dashboard.dashboards.admin.projects.tables.ViewMembersLink'>, <class 'openstack_dashboard.dashboards.admin.projects.tables.ViewGroupsLink'>, <class 'openstack_dashboard.dashboards.admin.projects.tables.UpdateProject'>, <class 'openstack_dashboard.dashboards.admin.projects.tables.UsageLink'>, <class 'openstack_dashboard.dashboards.admin.projects.tables.ModifyQuotas'>, <class 'openstack_dashboard.dashboards.admin.projects.tables.DeleteTenantsAction'>)
TenantsTable.Meta.row_class

alias of UpdateRow

TenantsTable.Meta.table_actions = (<class 'openstack_dashboard.dashboards.admin.projects.tables.TenantFilterAction'>, <class 'openstack_dashboard.dashboards.admin.projects.tables.CreateProject'>, <class 'openstack_dashboard.dashboards.admin.projects.tables.DeleteTenantsAction'>)
TenantsTable.Meta.verbose_name = <django.utils.functional.__proxy__ object at 0x6a997d0>
TenantsTable.base_actions = {'create': <CreateProject: create>, 'delete': <DeleteTenantsAction: delete>, 'filter': <TenantFilterAction: filter>, 'groups': <ViewGroupsLink: groups>, 'quotas': <ModifyQuotas: quotas>, 'update': <UpdateProject: update>, 'usage': <UsageLink: usage>, 'users': <ViewMembersLink: users>}
TenantsTable.base_columns = {'name': <Column: name>, 'description': <Column: description>, 'id': <Column: id>, 'enabled': <Column: enabled>}
class openstack_dashboard.dashboards.admin.projects.tables.UpdateCell[source]

Bases: horizon.tables.actions.UpdateAction

UpdateCell.allowed(request, project, cell)[source]
UpdateCell.update_cell(request, datum, project_id, cell_name, new_cell_value)[source]
class openstack_dashboard.dashboards.admin.projects.tables.UpdateProject(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

UpdateProject.allowed(request, project)[source]
UpdateProject.base_options = {'__module__': 'openstack_dashboard.dashboards.admin.projects.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'update': <function update at 0x4d1dcf8>, 'policy_rules': (('identity', 'identity:update_project'),), 'get_link_url': <function get_link_url at 0x4d1dc08>, 'allowed': <function allowed at 0x6aefc80>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x4d1df50>, 'get_default_classes': <function get_default_classes at 0x4d1d2a8>, 'update': <function update at 0x4d1dcf8>, 'get_policy_target': <function get_policy_target at 0x4d1de60>, '_allowed': <function _allowed at 0x4d1dc80>, '__repr__': <function __repr__ at 0x4d1db90>, 'allowed': <function allowed at 0x4d1dde8>, 'get_default_attrs': <function get_default_attrs at 0x4d1d9b0>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x4d1ded8>}, '__init__': <function __init__ at 0x4d1da28>, 'name': 'update', 'url': 'horizon:admin:projects:update', 'data_type_matched': <function data_type_matched at 0x4d1df50>, 'get_default_classes': <function get_default_classes at 0x4d1d2a8>, 'get_policy_target': <function get_policy_target at 0x4d1de60>, '_allowed': <function _allowed at 0x4d1dc80>, 'classes': ('ajax-modal', 'btn-edit'), '__repr__': <function __repr__ at 0x4d1db90>, 'get_default_attrs': <function get_default_attrs at 0x4d1d9b0>, 'verbose_name': <django.utils.functional.__proxy__ object at 0x6aa3bd0>, '__doc__': 'A table action which is simply a link rather than a form POST.\n\n .. attribute:: name\n\n Required. The short name or "slug" representing this\n action. This name should not be changed at runtime.\n\n .. attribute:: verbose_name\n\n A string which will be rendered as the link text. (Required)\n\n .. attribute:: url\n\n A string or a callable which resolves to a url to be used as the link\n target. You must either define the ``url`` attribute or override\n the ``get_link_url`` method on the class.\n\n .. attribute:: allowed_data_types\n\n A list that contains the allowed data types of the action. If the\n datum\'s type is in this list, the action will be shown on the row\n for the datum.\n\n Defaults to be an empty list (``[]``). When set to empty, the action\n will accept any kind of data.\n '}
UpdateProject.classes = ('ajax-modal', 'btn-edit')
UpdateProject.name = 'update'
UpdateProject.policy_rules = (('identity', 'identity:update_project'),)
UpdateProject.url = 'horizon:admin:projects:update'
UpdateProject.verbose_name = <django.utils.functional.__proxy__ object at 0x6aa3bd0>
class openstack_dashboard.dashboards.admin.projects.tables.UpdateRow(table, datum=None)[source]

Bases: horizon.tables.base.Row

UpdateRow.ajax = True
UpdateRow.get_data(request, project_id)[source]
class openstack_dashboard.dashboards.admin.projects.tables.UsageLink(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

UsageLink.base_options = {'__module__': 'openstack_dashboard.dashboards.admin.projects.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'name': 'usage', '_allowed': <function _allowed at 0x4d1dc80>, 'url': 'horizon:admin:projects:usage', 'verbose_name': <django.utils.functional.__proxy__ object at 0x6aa3c10>, 'data_type_matched': <function data_type_matched at 0x4d1df50>, 'get_default_classes': <function get_default_classes at 0x4d1d2a8>, 'update': <function update at 0x4d1dcf8>, 'get_policy_target': <function get_policy_target at 0x4d1de60>, 'get_link_url': <function get_link_url at 0x4d1dc08>, 'classes': ('btn-stats',), '__repr__': <function __repr__ at 0x4d1db90>, 'policy_rules': (('compute', 'compute_extension:simple_tenant_usage:show'),), 'allowed': <function allowed at 0x4d1dde8>, 'get_default_attrs': <function get_default_attrs at 0x4d1d9b0>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x4d1df50>, 'get_default_classes': <function get_default_classes at 0x4d1d2a8>, 'update': <function update at 0x4d1dcf8>, 'get_policy_target': <function get_policy_target at 0x4d1de60>, '_allowed': <function _allowed at 0x4d1dc80>, '__repr__': <function __repr__ at 0x4d1db90>, 'allowed': <function allowed at 0x4d1dde8>, 'get_default_attrs': <function get_default_attrs at 0x4d1d9b0>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x4d1ded8>}, '__doc__': 'A table action which is simply a link rather than a form POST.\n\n .. attribute:: name\n\n Required. The short name or "slug" representing this\n action. This name should not be changed at runtime.\n\n .. attribute:: verbose_name\n\n A string which will be rendered as the link text. (Required)\n\n .. attribute:: url\n\n A string or a callable which resolves to a url to be used as the link\n target. You must either define the ``url`` attribute or override\n the ``get_link_url`` method on the class.\n\n .. attribute:: allowed_data_types\n\n A list that contains the allowed data types of the action. If the\n datum\'s type is in this list, the action will be shown on the row\n for the datum.\n\n Defaults to be an empty list (``[]``). When set to empty, the action\n will accept any kind of data.\n ', '__init__': <function __init__ at 0x4d1da28>}
UsageLink.classes = ('btn-stats',)
UsageLink.name = 'usage'
UsageLink.policy_rules = (('compute', 'compute_extension:simple_tenant_usage:show'),)
UsageLink.url = 'horizon:admin:projects:usage'
UsageLink.verbose_name = <django.utils.functional.__proxy__ object at 0x6aa3c10>
class openstack_dashboard.dashboards.admin.projects.tables.ViewGroupsLink(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

ViewGroupsLink.allowed(request, project)[source]
ViewGroupsLink.base_options = {'__module__': 'openstack_dashboard.dashboards.admin.projects.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'update': <function update at 0x4d1dcf8>, 'get_link_url': <function get_link_url at 0x6aefb90>, 'allowed': <function allowed at 0x6aefb18>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x4d1df50>, 'get_default_classes': <function get_default_classes at 0x4d1d2a8>, 'update': <function update at 0x4d1dcf8>, 'get_policy_target': <function get_policy_target at 0x4d1de60>, '_allowed': <function _allowed at 0x4d1dc80>, '__repr__': <function __repr__ at 0x4d1db90>, 'allowed': <function allowed at 0x4d1dde8>, 'get_default_attrs': <function get_default_attrs at 0x4d1d9b0>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x4d1ded8>}, '__init__': <function __init__ at 0x4d1da28>, 'name': 'groups', 'url': 'horizon:admin:projects:update', 'data_type_matched': <function data_type_matched at 0x4d1df50>, 'get_default_classes': <function get_default_classes at 0x4d1d2a8>, 'get_policy_target': <function get_policy_target at 0x4d1de60>, '_allowed': <function _allowed at 0x4d1dc80>, 'classes': ('ajax-modal', 'btn-edit'), '__repr__': <function __repr__ at 0x4d1db90>, 'get_default_attrs': <function get_default_attrs at 0x4d1d9b0>, 'verbose_name': <django.utils.functional.__proxy__ object at 0x6848e90>, '__doc__': 'A table action which is simply a link rather than a form POST.\n\n .. attribute:: name\n\n Required. The short name or "slug" representing this\n action. This name should not be changed at runtime.\n\n .. attribute:: verbose_name\n\n A string which will be rendered as the link text. (Required)\n\n .. attribute:: url\n\n A string or a callable which resolves to a url to be used as the link\n target. You must either define the ``url`` attribute or override\n the ``get_link_url`` method on the class.\n\n .. attribute:: allowed_data_types\n\n A list that contains the allowed data types of the action. If the\n datum\'s type is in this list, the action will be shown on the row\n for the datum.\n\n Defaults to be an empty list (``[]``). When set to empty, the action\n will accept any kind of data.\n '}
ViewGroupsLink.classes = ('ajax-modal', 'btn-edit')
ViewGroupsLink.get_link_url(project)[source]
ViewGroupsLink.name = 'groups'
ViewGroupsLink.url = 'horizon:admin:projects:update'
ViewGroupsLink.verbose_name = <django.utils.functional.__proxy__ object at 0x6848e90>
class openstack_dashboard.dashboards.admin.projects.tables.ViewMembersLink(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

ViewMembersLink.base_options = {'__module__': 'openstack_dashboard.dashboards.admin.projects.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'update': <function update at 0x4d1dcf8>, 'policy_rules': (('identity', 'identity:list_users'), ('identity', 'identity:list_roles')), 'get_link_url': <function get_link_url at 0x6aefaa0>, 'allowed': <function allowed at 0x4d1dde8>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x4d1df50>, 'get_default_classes': <function get_default_classes at 0x4d1d2a8>, 'update': <function update at 0x4d1dcf8>, 'get_policy_target': <function get_policy_target at 0x4d1de60>, '_allowed': <function _allowed at 0x4d1dc80>, '__repr__': <function __repr__ at 0x4d1db90>, 'allowed': <function allowed at 0x4d1dde8>, 'get_default_attrs': <function get_default_attrs at 0x4d1d9b0>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x4d1ded8>}, '__init__': <function __init__ at 0x4d1da28>, 'name': 'users', 'url': 'horizon:admin:projects:update', 'data_type_matched': <function data_type_matched at 0x4d1df50>, 'get_default_classes': <function get_default_classes at 0x4d1d2a8>, 'get_policy_target': <function get_policy_target at 0x4d1de60>, '_allowed': <function _allowed at 0x4d1dc80>, 'classes': ('ajax-modal', 'btn-edit'), '__repr__': <function __repr__ at 0x4d1db90>, 'get_default_attrs': <function get_default_attrs at 0x4d1d9b0>, 'verbose_name': <django.utils.functional.__proxy__ object at 0x68488d0>, '__doc__': 'A table action which is simply a link rather than a form POST.\n\n .. attribute:: name\n\n Required. The short name or "slug" representing this\n action. This name should not be changed at runtime.\n\n .. attribute:: verbose_name\n\n A string which will be rendered as the link text. (Required)\n\n .. attribute:: url\n\n A string or a callable which resolves to a url to be used as the link\n target. You must either define the ``url`` attribute or override\n the ``get_link_url`` method on the class.\n\n .. attribute:: allowed_data_types\n\n A list that contains the allowed data types of the action. If the\n datum\'s type is in this list, the action will be shown on the row\n for the datum.\n\n Defaults to be an empty list (``[]``). When set to empty, the action\n will accept any kind of data.\n '}
ViewMembersLink.classes = ('ajax-modal', 'btn-edit')
ViewMembersLink.get_link_url(project)[source]
ViewMembersLink.name = 'users'
ViewMembersLink.policy_rules = (('identity', 'identity:list_users'), ('identity', 'identity:list_roles'))
ViewMembersLink.url = 'horizon:admin:projects:update'
ViewMembersLink.verbose_name = <django.utils.functional.__proxy__ object at 0x68488d0>

Previous topic

The openstack_dashboard.dashboards.admin.users Module

Next topic

The openstack_dashboard.dashboards.admin.projects.tests Module

This Page