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

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

Bases: horizon.tables.actions.LinkAction

base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'name': 'addfirewall', '_allowed': <function _allowed at 0xf52eabfc>, 'url': 'horizon:project:firewalls:addfirewall', 'verbose_name': <django.utils.functional.__proxy__ object at 0xf1c00acc>, 'data_type_matched': <function data_type_matched at 0xf52ea72c>, 'get_default_classes': <function get_default_classes at 0xf52ea87c>, 'update': <function update at 0xf52eaa3c>, 'get_policy_target': <function get_policy_target at 0xf52ea844>, 'get_link_url': <function get_link_url at 0xf52eae9c>, 'classes': ('ajax-modal', 'btn-addfirewall'), '__repr__': <function __repr__ at 0xf52ea6f4>, 'allowed': <function allowed at 0xf52ea8ec>, 'get_default_attrs': <function get_default_attrs at 0xf52eae64>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0xf52ea72c>, 'get_default_classes': <function get_default_classes at 0xf52ea87c>, 'update': <function update at 0xf52eaa3c>, 'get_policy_target': <function get_policy_target at 0xf52ea844>, '_allowed': <function _allowed at 0xf52eabfc>, '__repr__': <function __repr__ at 0xf52ea6f4>, 'allowed': <function allowed at 0xf52ea8ec>, 'get_default_attrs': <function get_default_attrs at 0xf52eae64>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0xf52ea924>}, '__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 0xf52ea8b4>}
classes = ('ajax-modal', 'btn-addfirewall')
name = 'addfirewall'
url = 'horizon:project:firewalls:addfirewall'
verbose_name = <django.utils.functional.__proxy__ object at 0xf1c00acc>
class openstack_dashboard.dashboards.project.firewalls.tables.AddPolicyLink(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'name': 'addpolicy', '_allowed': <function _allowed at 0xf52eabfc>, 'url': 'horizon:project:firewalls:addpolicy', 'verbose_name': <django.utils.functional.__proxy__ object at 0xf1c00d8c>, 'data_type_matched': <function data_type_matched at 0xf52ea72c>, 'get_default_classes': <function get_default_classes at 0xf52ea87c>, 'update': <function update at 0xf52eaa3c>, 'get_policy_target': <function get_policy_target at 0xf52ea844>, 'get_link_url': <function get_link_url at 0xf52eae9c>, 'classes': ('ajax-modal', 'btn-addpolicy'), '__repr__': <function __repr__ at 0xf52ea6f4>, 'allowed': <function allowed at 0xf52ea8ec>, 'get_default_attrs': <function get_default_attrs at 0xf52eae64>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0xf52ea72c>, 'get_default_classes': <function get_default_classes at 0xf52ea87c>, 'update': <function update at 0xf52eaa3c>, 'get_policy_target': <function get_policy_target at 0xf52ea844>, '_allowed': <function _allowed at 0xf52eabfc>, '__repr__': <function __repr__ at 0xf52ea6f4>, 'allowed': <function allowed at 0xf52ea8ec>, 'get_default_attrs': <function get_default_attrs at 0xf52eae64>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0xf52ea924>}, '__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 0xf52ea8b4>}
classes = ('ajax-modal', 'btn-addpolicy')
name = 'addpolicy'
url = 'horizon:project:firewalls:addpolicy'
verbose_name = <django.utils.functional.__proxy__ object at 0xf1c00d8c>
class openstack_dashboard.dashboards.project.firewalls.tables.AddRuleLink(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'name': 'addrule', '_allowed': <function _allowed at 0xf52eabfc>, 'url': 'horizon:project:firewalls:addrule', 'verbose_name': <django.utils.functional.__proxy__ object at 0xf1c0060c>, 'data_type_matched': <function data_type_matched at 0xf52ea72c>, 'get_default_classes': <function get_default_classes at 0xf52ea87c>, 'update': <function update at 0xf52eaa3c>, 'get_policy_target': <function get_policy_target at 0xf52ea844>, 'get_link_url': <function get_link_url at 0xf52eae9c>, 'classes': ('ajax-modal', 'btn-create'), '__repr__': <function __repr__ at 0xf52ea6f4>, 'allowed': <function allowed at 0xf52ea8ec>, 'get_default_attrs': <function get_default_attrs at 0xf52eae64>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0xf52ea72c>, 'get_default_classes': <function get_default_classes at 0xf52ea87c>, 'update': <function update at 0xf52eaa3c>, 'get_policy_target': <function get_policy_target at 0xf52ea844>, '_allowed': <function _allowed at 0xf52eabfc>, '__repr__': <function __repr__ at 0xf52ea6f4>, 'allowed': <function allowed at 0xf52ea8ec>, 'get_default_attrs': <function get_default_attrs at 0xf52eae64>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0xf52ea924>}, '__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 0xf52ea8b4>}
classes = ('ajax-modal', 'btn-create')
name = 'addrule'
url = 'horizon:project:firewalls:addrule'
verbose_name = <django.utils.functional.__proxy__ object at 0xf1c0060c>
class openstack_dashboard.dashboards.project.firewalls.tables.DeleteFirewallLink(**kwargs)[source]

Bases: horizon.tables.actions.DeleteAction

action_past = <django.utils.functional.__proxy__ object at 0xf1c0454c>
action_present = <django.utils.functional.__proxy__ object at 0xf1dd216c>
base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_singular': <django.utils.functional.__proxy__ object at 0xf1c04bac>, 'update': <function update at 0xf52ea6bc>, 'get_success_url': <function get_success_url at 0xf52eaca4>, 'get_param_name': <function get_param_name at 0xf52ea79c>, 'allowed': <function allowed at 0xf52ea8ec>, 'handle': <function handle at 0xf52eacdc>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0xf52ea72c>, 'get_default_classes': <function get_default_classes at 0xf52ea87c>, 'update': <function update at 0xf52eaa3c>, 'get_policy_target': <function get_policy_target at 0xf52ea844>, '_allowed': <function _allowed at 0xf52eabfc>, '__repr__': <function __repr__ at 0xf52ea6f4>, 'allowed': <function allowed at 0xf52ea8ec>, 'get_default_attrs': <function get_default_attrs at 0xf52eae64>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0xf52ea924>}, '__init__': <function __init__ at 0xf52ea80c>, 'name': 'deletefirewall', 'data_type_plural': <django.utils.functional.__proxy__ object at 0xf1c0416c>, 'action_present': <django.utils.functional.__proxy__ object at 0xf1dd216c>, 'action_past': <django.utils.functional.__proxy__ object at 0xf1c0454c>, 'data_type_matched': <function data_type_matched at 0xf52ea72c>, 'get_default_classes': <function get_default_classes at 0xf52ea764>, 'get_policy_target': <function get_policy_target at 0xf52ea844>, '_allowed': <function _allowed at 0xf52ead84>, '_get_action_name': <function _get_action_name at 0xf52ead4c>, '__repr__': <function __repr__ at 0xf52ea6f4>, 'action': <function action at 0xf52eab54>, 'get_default_attrs': <function get_default_attrs at 0xf52eae64>, '__doc__': 'Doc missing.', 'delete': <function delete at 0xf52eac34>}
data_type_plural = <django.utils.functional.__proxy__ object at 0xf1c0416c>
data_type_singular = <django.utils.functional.__proxy__ object at 0xf1c04bac>
name = 'deletefirewall'
class openstack_dashboard.dashboards.project.firewalls.tables.DeletePolicyLink(**kwargs)[source]

Bases: horizon.tables.actions.DeleteAction

action_past = <django.utils.functional.__proxy__ object at 0xf1c047ac>
action_present = <django.utils.functional.__proxy__ object at 0xf1c049ec>
base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_singular': <django.utils.functional.__proxy__ object at 0xf1c04e6c>, 'update': <function update at 0xf52ea6bc>, 'get_success_url': <function get_success_url at 0xf52eaca4>, 'get_param_name': <function get_param_name at 0xf52ea79c>, 'allowed': <function allowed at 0xf52ea8ec>, 'handle': <function handle at 0xf52eacdc>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0xf52ea72c>, 'get_default_classes': <function get_default_classes at 0xf52ea87c>, 'update': <function update at 0xf52eaa3c>, 'get_policy_target': <function get_policy_target at 0xf52ea844>, '_allowed': <function _allowed at 0xf52eabfc>, '__repr__': <function __repr__ at 0xf52ea6f4>, 'allowed': <function allowed at 0xf52ea8ec>, 'get_default_attrs': <function get_default_attrs at 0xf52eae64>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0xf52ea924>}, '__init__': <function __init__ at 0xf52ea80c>, 'name': 'deletepolicy', 'data_type_plural': <django.utils.functional.__proxy__ object at 0xf1c0456c>, 'action_present': <django.utils.functional.__proxy__ object at 0xf1c049ec>, 'action_past': <django.utils.functional.__proxy__ object at 0xf1c047ac>, 'data_type_matched': <function data_type_matched at 0xf52ea72c>, 'get_default_classes': <function get_default_classes at 0xf52ea764>, 'get_policy_target': <function get_policy_target at 0xf52ea844>, '_allowed': <function _allowed at 0xf52ead84>, '_get_action_name': <function _get_action_name at 0xf52ead4c>, '__repr__': <function __repr__ at 0xf52ea6f4>, 'action': <function action at 0xf52eab54>, 'get_default_attrs': <function get_default_attrs at 0xf52eae64>, '__doc__': 'Doc missing.', 'delete': <function delete at 0xf52eac34>}
data_type_plural = <django.utils.functional.__proxy__ object at 0xf1c0456c>
data_type_singular = <django.utils.functional.__proxy__ object at 0xf1c04e6c>
name = 'deletepolicy'
class openstack_dashboard.dashboards.project.firewalls.tables.DeleteRuleLink(**kwargs)[source]

Bases: horizon.tables.actions.DeleteAction

action_past = <django.utils.functional.__proxy__ object at 0xf1c048ec>
action_present = <django.utils.functional.__proxy__ object at 0xf1c0402c>
base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_singular': <django.utils.functional.__proxy__ object at 0xf1c044ec>, 'update': <function update at 0xf52ea6bc>, 'get_success_url': <function get_success_url at 0xf52eaca4>, 'get_param_name': <function get_param_name at 0xf52ea79c>, 'allowed': <function allowed at 0xf52ea8ec>, 'handle': <function handle at 0xf52eacdc>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0xf52ea72c>, 'get_default_classes': <function get_default_classes at 0xf52ea87c>, 'update': <function update at 0xf52eaa3c>, 'get_policy_target': <function get_policy_target at 0xf52ea844>, '_allowed': <function _allowed at 0xf52eabfc>, '__repr__': <function __repr__ at 0xf52ea6f4>, 'allowed': <function allowed at 0xf52ea8ec>, 'get_default_attrs': <function get_default_attrs at 0xf52eae64>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0xf52ea924>}, '__init__': <function __init__ at 0xf52ea80c>, 'name': 'deleterule', 'data_type_plural': <django.utils.functional.__proxy__ object at 0xf1c0468c>, 'action_present': <django.utils.functional.__proxy__ object at 0xf1c0402c>, 'action_past': <django.utils.functional.__proxy__ object at 0xf1c048ec>, 'data_type_matched': <function data_type_matched at 0xf52ea72c>, 'get_default_classes': <function get_default_classes at 0xf52ea764>, 'get_policy_target': <function get_policy_target at 0xf52ea844>, '_allowed': <function _allowed at 0xf52ead84>, '_get_action_name': <function _get_action_name at 0xf52ead4c>, '__repr__': <function __repr__ at 0xf52ea6f4>, 'action': <function action at 0xf52eab54>, 'get_default_attrs': <function get_default_attrs at 0xf52eae64>, '__doc__': 'Doc missing.', 'delete': <function delete at 0xf52eac34>}
data_type_plural = <django.utils.functional.__proxy__ object at 0xf1c0468c>
data_type_singular = <django.utils.functional.__proxy__ object at 0xf1c044ec>
name = 'deleterule'
class openstack_dashboard.dashboards.project.firewalls.tables.FirewallsTable(request, data=None, needs_form_wrapper=None, **kwargs)[source]

Bases: horizon.tables.base.DataTable

class Meta[source]
name = 'firewallstable'
row_actions = (<class 'openstack_dashboard.dashboards.project.firewalls.tables.UpdateFirewallLink'>, <class 'openstack_dashboard.dashboards.project.firewalls.tables.DeleteFirewallLink'>)
table_actions = (<class 'openstack_dashboard.dashboards.project.firewalls.tables.AddFirewallLink'>, <class 'openstack_dashboard.dashboards.project.firewalls.tables.DeleteFirewallLink'>)
verbose_name = <django.utils.functional.__proxy__ object at 0xf1c0618c>
FirewallsTable.base_actions = {'addfirewall': <AddFirewallLink: addfirewall>, 'deletefirewall': <DeleteFirewallLink: deletefirewall>, 'updatefirewall': <UpdateFirewallLink: updatefirewall>}
FirewallsTable.base_columns = {'name': <Column: name>, 'firewall_policy_id': <Column: firewall_policy_id>, 'status': <Column: status>}
class openstack_dashboard.dashboards.project.firewalls.tables.InsertRuleToPolicyLink(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'name': 'insertrule', '_allowed': <function _allowed at 0xf52eabfc>, 'verbose_name': <django.utils.functional.__proxy__ object at 0xf1c0150c>, 'data_type_matched': <function data_type_matched at 0xf52ea72c>, 'get_default_classes': <function get_default_classes at 0xf52ea87c>, 'update': <function update at 0xf52eaa3c>, 'get_policy_target': <function get_policy_target at 0xf52ea844>, 'get_link_url': <function get_link_url at 0xf232817c>, 'classes': ('ajax-modal', 'btn-update'), '__repr__': <function __repr__ at 0xf52ea6f4>, 'allowed': <function allowed at 0xf52ea8ec>, 'get_default_attrs': <function get_default_attrs at 0xf52eae64>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0xf52ea72c>, 'get_default_classes': <function get_default_classes at 0xf52ea87c>, 'update': <function update at 0xf52eaa3c>, 'get_policy_target': <function get_policy_target at 0xf52ea844>, '_allowed': <function _allowed at 0xf52eabfc>, '__repr__': <function __repr__ at 0xf52ea6f4>, 'allowed': <function allowed at 0xf52ea8ec>, 'get_default_attrs': <function get_default_attrs at 0xf52eae64>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0xf52ea924>}, '__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 0xf52ea8b4>}
classes = ('ajax-modal', 'btn-update')
get_link_url(policy)[source]
name = 'insertrule'
verbose_name = <django.utils.functional.__proxy__ object at 0xf1c0150c>
class openstack_dashboard.dashboards.project.firewalls.tables.PoliciesTable(request, data=None, needs_form_wrapper=None, **kwargs)[source]

Bases: horizon.tables.base.DataTable

class Meta[source]
name = 'policiestable'
row_actions = (<class 'openstack_dashboard.dashboards.project.firewalls.tables.UpdatePolicyLink'>, <class 'openstack_dashboard.dashboards.project.firewalls.tables.InsertRuleToPolicyLink'>, <class 'openstack_dashboard.dashboards.project.firewalls.tables.RemoveRuleFromPolicyLink'>, <class 'openstack_dashboard.dashboards.project.firewalls.tables.DeletePolicyLink'>)
table_actions = (<class 'openstack_dashboard.dashboards.project.firewalls.tables.AddPolicyLink'>, <class 'openstack_dashboard.dashboards.project.firewalls.tables.DeletePolicyLink'>)
verbose_name = <django.utils.functional.__proxy__ object at 0xf1c013ac>
PoliciesTable.base_actions = {'addpolicy': <AddPolicyLink: addpolicy>, 'deletepolicy': <DeletePolicyLink: deletepolicy>, 'insertrule': <InsertRuleToPolicyLink: insertrule>, 'removerule': <RemoveRuleFromPolicyLink: removerule>, 'updatepolicy': <UpdatePolicyLink: updatepolicy>}
PoliciesTable.base_columns = {'name': <Column: name>, 'firewall_rules': <Column: firewall_rules>, 'audited': <Column: audited>}
class openstack_dashboard.dashboards.project.firewalls.tables.RemoveRuleFromPolicyLink(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'name': 'removerule', '_allowed': <function _allowed at 0xf52eabfc>, 'verbose_name': <django.utils.functional.__proxy__ object at 0xf1c0178c>, 'data_type_matched': <function data_type_matched at 0xf52ea72c>, 'get_default_classes': <function get_default_classes at 0xf52ea87c>, 'update': <function update at 0xf52eaa3c>, 'get_policy_target': <function get_policy_target at 0xf52ea844>, 'get_link_url': <function get_link_url at 0xf232810c>, 'classes': ('ajax-modal', 'btn-danger'), '__repr__': <function __repr__ at 0xf52ea6f4>, 'allowed': <function allowed at 0xf52ea8ec>, 'get_default_attrs': <function get_default_attrs at 0xf52eae64>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0xf52ea72c>, 'get_default_classes': <function get_default_classes at 0xf52ea87c>, 'update': <function update at 0xf52eaa3c>, 'get_policy_target': <function get_policy_target at 0xf52ea844>, '_allowed': <function _allowed at 0xf52eabfc>, '__repr__': <function __repr__ at 0xf52ea6f4>, 'allowed': <function allowed at 0xf52ea8ec>, 'get_default_attrs': <function get_default_attrs at 0xf52eae64>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0xf52ea924>}, '__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 0xf52ea8b4>}
classes = ('ajax-modal', 'btn-danger')
get_link_url(policy)[source]
name = 'removerule'
verbose_name = <django.utils.functional.__proxy__ object at 0xf1c0178c>
class openstack_dashboard.dashboards.project.firewalls.tables.RulesTable(request, data=None, needs_form_wrapper=None, **kwargs)[source]

Bases: horizon.tables.base.DataTable

class Meta[source]
name = 'rulestable'
row_actions = (<class 'openstack_dashboard.dashboards.project.firewalls.tables.UpdateRuleLink'>, <class 'openstack_dashboard.dashboards.project.firewalls.tables.DeleteRuleLink'>)
table_actions = (<class 'openstack_dashboard.dashboards.project.firewalls.tables.AddRuleLink'>, <class 'openstack_dashboard.dashboards.project.firewalls.tables.DeleteRuleLink'>)
verbose_name = <django.utils.functional.__proxy__ object at 0xf1c0116c>
RulesTable.base_actions = {'addrule': <AddRuleLink: addrule>, 'deleterule': <DeleteRuleLink: deleterule>, 'updaterule': <UpdateRuleLink: updaterule>}
RulesTable.base_columns = {'name': <Column: name>, 'protocol': <Column: protocol>, 'source_ip_address': <Column: source_ip_address>, 'source_port': <Column: source_port>, 'destination_ip_address': <Column: destination_ip_address>, 'destination_port': <Column: destination_port>, 'action': <Column: action>, 'enabled': <Column: enabled>, 'firewall_policy_id': <Column: firewall_policy_id>}
class openstack_dashboard.dashboards.project.firewalls.tables.UpdateFirewallLink(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'name': 'updatefirewall', '_allowed': <function _allowed at 0xf52eabfc>, 'verbose_name': <django.utils.functional.__proxy__ object at 0xf2551f8c>, 'data_type_matched': <function data_type_matched at 0xf52ea72c>, 'get_default_classes': <function get_default_classes at 0xf52ea87c>, 'update': <function update at 0xf52eaa3c>, 'get_policy_target': <function get_policy_target at 0xf52ea844>, 'get_link_url': <function get_link_url at 0xf23281b4>, 'classes': ('ajax-modal', 'btn-update'), '__repr__': <function __repr__ at 0xf52ea6f4>, 'allowed': <function allowed at 0xf52ea8ec>, 'get_default_attrs': <function get_default_attrs at 0xf52eae64>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0xf52ea72c>, 'get_default_classes': <function get_default_classes at 0xf52ea87c>, 'update': <function update at 0xf52eaa3c>, 'get_policy_target': <function get_policy_target at 0xf52ea844>, '_allowed': <function _allowed at 0xf52eabfc>, '__repr__': <function __repr__ at 0xf52ea6f4>, 'allowed': <function allowed at 0xf52ea8ec>, 'get_default_attrs': <function get_default_attrs at 0xf52eae64>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0xf52ea924>}, '__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 0xf52ea8b4>}
classes = ('ajax-modal', 'btn-update')
get_link_url(firewall)[source]
name = 'updatefirewall'
verbose_name = <django.utils.functional.__proxy__ object at 0xf2551f8c>
class openstack_dashboard.dashboards.project.firewalls.tables.UpdatePolicyLink(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'name': 'updatepolicy', '_allowed': <function _allowed at 0xf52eabfc>, 'verbose_name': <django.utils.functional.__proxy__ object at 0xf1c01a8c>, 'data_type_matched': <function data_type_matched at 0xf52ea72c>, 'get_default_classes': <function get_default_classes at 0xf52ea87c>, 'update': <function update at 0xf52eaa3c>, 'get_policy_target': <function get_policy_target at 0xf52ea844>, 'get_link_url': <function get_link_url at 0xf2328224>, 'classes': ('ajax-modal', 'btn-update'), '__repr__': <function __repr__ at 0xf52ea6f4>, 'allowed': <function allowed at 0xf52ea8ec>, 'get_default_attrs': <function get_default_attrs at 0xf52eae64>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0xf52ea72c>, 'get_default_classes': <function get_default_classes at 0xf52ea87c>, 'update': <function update at 0xf52eaa3c>, 'get_policy_target': <function get_policy_target at 0xf52ea844>, '_allowed': <function _allowed at 0xf52eabfc>, '__repr__': <function __repr__ at 0xf52ea6f4>, 'allowed': <function allowed at 0xf52ea8ec>, 'get_default_attrs': <function get_default_attrs at 0xf52eae64>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0xf52ea924>}, '__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 0xf52ea8b4>}
classes = ('ajax-modal', 'btn-update')
get_link_url(policy)[source]
name = 'updatepolicy'
verbose_name = <django.utils.functional.__proxy__ object at 0xf1c01a8c>
class openstack_dashboard.dashboards.project.firewalls.tables.UpdateRuleLink(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'name': 'updaterule', '_allowed': <function _allowed at 0xf52eabfc>, 'verbose_name': <django.utils.functional.__proxy__ object at 0xf1c046ec>, 'data_type_matched': <function data_type_matched at 0xf52ea72c>, 'get_default_classes': <function get_default_classes at 0xf52ea87c>, 'update': <function update at 0xf52eaa3c>, 'get_policy_target': <function get_policy_target at 0xf52ea844>, 'get_link_url': <function get_link_url at 0xf23289cc>, 'classes': ('ajax-modal', 'btn-update'), '__repr__': <function __repr__ at 0xf52ea6f4>, 'allowed': <function allowed at 0xf52ea8ec>, 'get_default_attrs': <function get_default_attrs at 0xf52eae64>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0xf52ea72c>, 'get_default_classes': <function get_default_classes at 0xf52ea87c>, 'update': <function update at 0xf52eaa3c>, 'get_policy_target': <function get_policy_target at 0xf52ea844>, '_allowed': <function _allowed at 0xf52eabfc>, '__repr__': <function __repr__ at 0xf52ea6f4>, 'allowed': <function allowed at 0xf52ea8ec>, 'get_default_attrs': <function get_default_attrs at 0xf52eae64>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0xf52ea924>}, '__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 0xf52ea8b4>}
classes = ('ajax-modal', 'btn-update')
get_link_url(rule)[source]
name = 'updaterule'
verbose_name = <django.utils.functional.__proxy__ object at 0xf1c046ec>
openstack_dashboard.dashboards.project.firewalls.tables.get_policy_link(datum)[source]
openstack_dashboard.dashboards.project.firewalls.tables.get_policy_name(datum)[source]
openstack_dashboard.dashboards.project.firewalls.tables.get_rules_name(datum)[source]

Previous topic

The openstack_dashboard.dashboards.project.firewalls Module

Next topic

The openstack_dashboard.dashboards.project.firewalls.urls Module

This Page