The openstack_dashboard.dashboards.project.stacks.tables ModuleΒΆ

class openstack_dashboard.dashboards.project.stacks.tables.ChangeStackTemplate(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

ChangeStackTemplate.base_options = {'__module__': 'openstack_dashboard.dashboards.project.stacks.tables', 'render': <function render at 0x4f3c398>, 'update': <function update at 0x4bb1f50>, 'get_link_url': <function get_link_url at 0x6e2fcf8>, 'ajax': False, 'allowed': <function allowed at 0x4bb1a28>, 'base_options': {'__module__': 'horizon.tables.actions', 'data_type_matched': <function data_type_matched at 0x4bb18c0>, 'get_default_classes': <function get_default_classes at 0x4f3c050>, 'update': <function update at 0x4bb1f50>, 'get_policy_target': <function get_policy_target at 0x4bb1b90>, 'associate_with_table': <function associate_with_table at 0x4f3c1b8>, '_allowed': <function _allowed at 0x4bb1848>, '__repr__': <function __repr__ at 0x4f3c140>, 'allowed': <function allowed at 0x4bb1a28>, 'get_default_attrs': <function get_default_attrs at 0x4f3c0c8>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x4bb17d0>}, 'get_default_attrs': <function get_default_attrs at 0x4f3c0c8>, '__init__': <function __init__ at 0x4f3c2a8>, 'icon': 'pencil', 'name': 'edit', 'url': 'horizon:project:stacks:change_template', 'data_type_matched': <function data_type_matched at 0x4bb18c0>, 'get_default_classes': <function get_default_classes at 0x4f3c050>, 'get_policy_target': <function get_policy_target at 0x4bb1b90>, 'associate_with_table': <function associate_with_table at 0x4f3c410>, '_allowed': <function _allowed at 0x4bb1848>, 'classes': ('ajax-modal',), '__repr__': <function __repr__ at 0x4f3c140>, 'get_ajax_update_url': <function get_ajax_update_url at 0x4f3c320>, 'verbose_name': <django.utils.functional.__proxy__ object at 0x6e323d0>, '__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 '}
ChangeStackTemplate.classes = ('ajax-modal',)
ChangeStackTemplate.get_link_url(stack)[source]
ChangeStackTemplate.icon = 'pencil'
ChangeStackTemplate.name = 'edit'
ChangeStackTemplate.url = 'horizon:project:stacks:change_template'
ChangeStackTemplate.verbose_name = <django.utils.functional.__proxy__ object at 0x6e323d0>
class openstack_dashboard.dashboards.project.stacks.tables.DeleteStack(**kwargs)[source]

Bases: horizon.tables.actions.DeleteAction

static DeleteStack.action_past(count)[source]
static DeleteStack.action_present(count)[source]
DeleteStack.allowed(request, stack)[source]
DeleteStack.base_options = {'__module__': 'openstack_dashboard.dashboards.project.stacks.tables', 'handle': <function handle at 0x4f3cc80>, 'update': <function update at 0x4f3cb90>, 'policy_rules': (('orchestration', 'cloudformation:DeleteStack'),), 'get_success_url': <function get_success_url at 0x4f3cc08>, 'get_param_name': <function get_param_name at 0x4f3c230>, 'allowed': <function allowed at 0x6e2fed8>, 'base_options': {'__module__': 'horizon.tables.actions', 'data_type_matched': <function data_type_matched at 0x4bb18c0>, 'get_default_classes': <function get_default_classes at 0x4f3c050>, 'update': <function update at 0x4bb1f50>, 'get_policy_target': <function get_policy_target at 0x4bb1b90>, 'associate_with_table': <function associate_with_table at 0x4f3c1b8>, '_allowed': <function _allowed at 0x4bb1848>, '__repr__': <function __repr__ at 0x4f3c140>, 'allowed': <function allowed at 0x4bb1a28>, 'get_default_attrs': <function get_default_attrs at 0x4f3c0c8>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x4bb17d0>}, '__init__': <function __init__ at 0x4f3ccf8>, 'name': 'delete', 'action_present': <staticmethod object at 0x6e29c90>, 'action_past': <staticmethod object at 0x6e29d00>, 'data_type_matched': <function data_type_matched at 0x4bb18c0>, 'get_default_classes': <function get_default_classes at 0x4f3ce60>, 'get_policy_target': <function get_policy_target at 0x4bb1b90>, 'associate_with_table': <function associate_with_table at 0x4f3c1b8>, '_allowed': <function _allowed at 0x4f3ca28>, '_get_action_name': <function _get_action_name at 0x4f3caa0>, '__repr__': <function __repr__ at 0x4f3c140>, 'action': <function action at 0x4f3cd70>, 'get_default_attrs': <function get_default_attrs at 0x4f3c0c8>, '__doc__': 'A table action used to perform delete operations on table data.\n\n .. attribute:: name\n\n A short name or "slug" representing this action.\n Defaults to \'delete\'\n\n .. method:: action_present\n\n Method accepting an integer/long parameter and returning the display\n forms of the name properly pluralised (depending on the integer) and\n translated in a string or tuple/list.\n\n .. attribute:: action_present (PendingDeprecation)\n\n A string containing the transitive verb describing the delete action.\n Defaults to \'Delete\'\n\n NOTE: action_present attribute is bad for translations and should be\n avoided. Please use the action_present method instead.\n This form is kept for legacy.\n\n .. method:: action_past\n\n Method accepting an integer/long parameter and returning the display\n forms of the name properly pluralised (depending on the integer) and\n translated in a string or tuple/list.\n\n .. attribute:: action_past (PendingDeprecation)\n\n A string set to the past tense of action_present.\n Defaults to \'Deleted\'\n\n NOTE: action_past attribute is bad for translations and should be\n avoided. Please use the action_past method instead.\n This form is kept for legacy.\n\n .. attribute:: data_type_singular (PendingDeprecation)\n\n A string used to name the data to be deleted.\n\n .. attribute:: data_type_plural (PendingDeprecation)\n\n Optional. Plural of ``data_type_singular``.\n Defaults to ``data_type_singular`` appended with an \'s\'. Relying on\n the default is bad for translations and should not be done, so it\'s\n absence will raise a DeprecationWarning. It is currently kept as\n optional for legacy code.\n\n NOTE: data_type_singular and data_type_plural attributes are bad for\n translations and should be avoided. Please use the action_present and\n action_past methods. This form is kept for legacy.\n ', 'delete': <function delete at 0x6e2fe60>}
DeleteStack.delete(request, stack_id)[source]
DeleteStack.policy_rules = (('orchestration', 'cloudformation:DeleteStack'),)
class openstack_dashboard.dashboards.project.stacks.tables.EventsTable(request, data=None, needs_form_wrapper=None, **kwargs)[source]

Bases: horizon.tables.base.DataTable

class EventsTable.Meta[source]
EventsTable.Meta.name = 'events'
EventsTable.Meta.verbose_name = <django.utils.functional.__proxy__ object at 0x720e050>
EventsTable.base_actions = {}
EventsTable.base_columns = {'logical_resource': <Column: logical_resource>, 'physical_resource': <Column: physical_resource>, 'timestamp': <Column: timestamp>, 'status': <Column: status>, 'statusreason': <Column: statusreason>}
class openstack_dashboard.dashboards.project.stacks.tables.LaunchStack(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

LaunchStack.base_options = {'__module__': 'openstack_dashboard.dashboards.project.stacks.tables', 'render': <function render at 0x4f3c398>, 'update': <function update at 0x4bb1f50>, 'policy_rules': (('orchestration', 'cloudformation:CreateStack'),), 'get_link_url': <function get_link_url at 0x4f3c488>, 'ajax': False, 'allowed': <function allowed at 0x4bb1a28>, 'base_options': {'__module__': 'horizon.tables.actions', 'data_type_matched': <function data_type_matched at 0x4bb18c0>, 'get_default_classes': <function get_default_classes at 0x4f3c050>, 'update': <function update at 0x4bb1f50>, 'get_policy_target': <function get_policy_target at 0x4bb1b90>, 'associate_with_table': <function associate_with_table at 0x4f3c1b8>, '_allowed': <function _allowed at 0x4bb1848>, '__repr__': <function __repr__ at 0x4f3c140>, 'allowed': <function allowed at 0x4bb1a28>, 'get_default_attrs': <function get_default_attrs at 0x4f3c0c8>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x4bb17d0>}, 'get_default_attrs': <function get_default_attrs at 0x4f3c0c8>, '__init__': <function __init__ at 0x4f3c2a8>, 'icon': 'plus', 'name': 'launch', 'url': 'horizon:project:stacks:select_template', 'data_type_matched': <function data_type_matched at 0x4bb18c0>, 'get_default_classes': <function get_default_classes at 0x4f3c050>, 'get_policy_target': <function get_policy_target at 0x4bb1b90>, 'associate_with_table': <function associate_with_table at 0x4f3c410>, '_allowed': <function _allowed at 0x4bb1848>, 'classes': ('ajax-modal',), '__repr__': <function __repr__ at 0x4f3c140>, 'get_ajax_update_url': <function get_ajax_update_url at 0x4f3c320>, 'verbose_name': <django.utils.functional.__proxy__ object at 0x6e33dd0>, '__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 '}
LaunchStack.classes = ('ajax-modal',)
LaunchStack.icon = 'plus'
LaunchStack.name = 'launch'
LaunchStack.policy_rules = (('orchestration', 'cloudformation:CreateStack'),)
LaunchStack.url = 'horizon:project:stacks:select_template'
LaunchStack.verbose_name = <django.utils.functional.__proxy__ object at 0x6e33dd0>
class openstack_dashboard.dashboards.project.stacks.tables.ResourcesTable(request, data=None, needs_form_wrapper=None, **kwargs)[source]

Bases: horizon.tables.base.DataTable

class ResourcesTable.Meta[source]
ResourcesTable.Meta.name = 'resources'
ResourcesTable.Meta.row_class

alias of ResourcesUpdateRow

ResourcesTable.Meta.status_columns = ['status']
ResourcesTable.Meta.verbose_name = <django.utils.functional.__proxy__ object at 0x720e6d0>
ResourcesTable.STATUS_CHOICES = (('Create Complete', True), ('Create Failed', False))
ResourcesTable.base_actions = {}
ResourcesTable.base_columns = {'logical_resource': <Column: logical_resource>, 'physical_resource': <Column: physical_resource>, 'resource_type': <Column: resource_type>, 'updated_time': <Column: updated_time>, 'status': <Column: status>, 'statusreason': <Column: statusreason>}
ResourcesTable.get_object_id(datum)[source]
class openstack_dashboard.dashboards.project.stacks.tables.ResourcesUpdateRow(table, datum=None)[source]

Bases: horizon.tables.base.Row

ResourcesUpdateRow.ajax = True
ResourcesUpdateRow.get_data(request, resource_name)[source]
class openstack_dashboard.dashboards.project.stacks.tables.StacksTable(request, data=None, needs_form_wrapper=None, **kwargs)[source]

Bases: horizon.tables.base.DataTable

class StacksTable.Meta[source]
StacksTable.Meta.name = 'stacks'
StacksTable.Meta.pagination_param = 'stack_marker'
StacksTable.Meta.row_actions = (<class 'openstack_dashboard.dashboards.project.stacks.tables.DeleteStack'>, <class 'openstack_dashboard.dashboards.project.stacks.tables.ChangeStackTemplate'>)
StacksTable.Meta.row_class

alias of StacksUpdateRow

StacksTable.Meta.status_columns = ['status']
StacksTable.Meta.table_actions = (<class 'openstack_dashboard.dashboards.project.stacks.tables.LaunchStack'>, <class 'openstack_dashboard.dashboards.project.stacks.tables.DeleteStack'>)
StacksTable.Meta.verbose_name = <django.utils.functional.__proxy__ object at 0x6e32890>
StacksTable.STATUS_CHOICES = (('Complete', True), ('Failed', False))
StacksTable.base_actions = {'delete': <DeleteStack: delete>, 'edit': <ChangeStackTemplate: edit>, 'launch': <LaunchStack: launch>}
StacksTable.base_columns = {'name': <Column: name>, 'created': <Column: created>, 'updated': <Column: updated>, 'status': <Column: status>}
StacksTable.get_object_display(stack)[source]
class openstack_dashboard.dashboards.project.stacks.tables.StacksUpdateRow(table, datum=None)[source]

Bases: horizon.tables.base.Row

StacksUpdateRow.ajax = True
StacksUpdateRow.can_be_selected(datum)[source]
StacksUpdateRow.get_data(request, stack_id)[source]
openstack_dashboard.dashboards.project.stacks.tables.get_resource_url(obj)[source]

Previous topic

The openstack_dashboard.dashboards.project.overview Module

Next topic

The openstack_dashboard.dashboards.project.stacks.tests Module

This Page