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

AddFirewallLink.base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'name': 'addfirewall', '_allowed': <function _allowed at 0x46c50c8>, 'url': 'horizon:project:firewalls:addfirewall', 'verbose_name': <django.utils.functional.__proxy__ object at 0x990acd0>, 'data_type_matched': <function data_type_matched at 0x437aed8>, 'get_default_classes': <function get_default_classes at 0x46c51b8>, 'update': <function update at 0x46c5140>, 'get_policy_target': <function get_policy_target at 0x437af50>, 'get_link_url': <function get_link_url at 0x46c5488>, 'classes': ('ajax-modal', 'btn-addfirewall'), '__repr__': <function __repr__ at 0x46c52a8>, 'allowed': <function allowed at 0x46c5050>, 'get_default_attrs': <function get_default_attrs at 0x46c5230>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x437aed8>, 'get_default_classes': <function get_default_classes at 0x46c51b8>, 'update': <function update at 0x46c5140>, 'get_policy_target': <function get_policy_target at 0x437af50>, '_allowed': <function _allowed at 0x46c50c8>, '__repr__': <function __repr__ at 0x46c52a8>, 'allowed': <function allowed at 0x46c5050>, 'get_default_attrs': <function get_default_attrs at 0x46c5230>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x437ab90>}, '__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 0x46c5410>}
AddFirewallLink.classes = ('ajax-modal', 'btn-addfirewall')
AddFirewallLink.name = 'addfirewall'
AddFirewallLink.url = 'horizon:project:firewalls:addfirewall'
AddFirewallLink.verbose_name = <django.utils.functional.__proxy__ object at 0x990acd0>
class openstack_dashboard.dashboards.project.firewalls.tables.AddPolicyLink(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

AddPolicyLink.base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'name': 'addpolicy', '_allowed': <function _allowed at 0x46c50c8>, 'url': 'horizon:project:firewalls:addpolicy', 'verbose_name': <django.utils.functional.__proxy__ object at 0x9e74a10>, 'data_type_matched': <function data_type_matched at 0x437aed8>, 'get_default_classes': <function get_default_classes at 0x46c51b8>, 'update': <function update at 0x46c5140>, 'get_policy_target': <function get_policy_target at 0x437af50>, 'get_link_url': <function get_link_url at 0x46c5488>, 'classes': ('ajax-modal', 'btn-addpolicy'), '__repr__': <function __repr__ at 0x46c52a8>, 'allowed': <function allowed at 0x46c5050>, 'get_default_attrs': <function get_default_attrs at 0x46c5230>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x437aed8>, 'get_default_classes': <function get_default_classes at 0x46c51b8>, 'update': <function update at 0x46c5140>, 'get_policy_target': <function get_policy_target at 0x437af50>, '_allowed': <function _allowed at 0x46c50c8>, '__repr__': <function __repr__ at 0x46c52a8>, 'allowed': <function allowed at 0x46c5050>, 'get_default_attrs': <function get_default_attrs at 0x46c5230>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x437ab90>}, '__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 0x46c5410>}
AddPolicyLink.classes = ('ajax-modal', 'btn-addpolicy')
AddPolicyLink.name = 'addpolicy'
AddPolicyLink.url = 'horizon:project:firewalls:addpolicy'
AddPolicyLink.verbose_name = <django.utils.functional.__proxy__ object at 0x9e74a10>
class openstack_dashboard.dashboards.project.firewalls.tables.AddRuleLink(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

AddRuleLink.base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'name': 'addrule', '_allowed': <function _allowed at 0x46c50c8>, 'url': 'horizon:project:firewalls:addrule', 'verbose_name': <django.utils.functional.__proxy__ object at 0x9e74790>, 'data_type_matched': <function data_type_matched at 0x437aed8>, 'get_default_classes': <function get_default_classes at 0x46c51b8>, 'update': <function update at 0x46c5140>, 'get_policy_target': <function get_policy_target at 0x437af50>, 'get_link_url': <function get_link_url at 0x46c5488>, 'classes': ('ajax-modal', 'btn-create'), '__repr__': <function __repr__ at 0x46c52a8>, 'allowed': <function allowed at 0x46c5050>, 'get_default_attrs': <function get_default_attrs at 0x46c5230>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x437aed8>, 'get_default_classes': <function get_default_classes at 0x46c51b8>, 'update': <function update at 0x46c5140>, 'get_policy_target': <function get_policy_target at 0x437af50>, '_allowed': <function _allowed at 0x46c50c8>, '__repr__': <function __repr__ at 0x46c52a8>, 'allowed': <function allowed at 0x46c5050>, 'get_default_attrs': <function get_default_attrs at 0x46c5230>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x437ab90>}, '__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 0x46c5410>}
AddRuleLink.classes = ('ajax-modal', 'btn-create')
AddRuleLink.name = 'addrule'
AddRuleLink.url = 'horizon:project:firewalls:addrule'
AddRuleLink.verbose_name = <django.utils.functional.__proxy__ object at 0x9e74790>
class openstack_dashboard.dashboards.project.firewalls.tables.DeleteFirewallLink(**kwargs)[source]

Bases: horizon.tables.actions.DeleteAction

DeleteFirewallLink.action_past = <django.utils.functional.__proxy__ object at 0x9e74550>
DeleteFirewallLink.action_present = <django.utils.functional.__proxy__ object at 0x9e74690>
DeleteFirewallLink.base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_singular': <django.utils.functional.__proxy__ object at 0x9e74590>, 'update': <function update at 0x46c5c08>, 'get_success_url': <function get_success_url at 0x46c5c80>, 'get_param_name': <function get_param_name at 0x46c5398>, 'allowed': <function allowed at 0x46c5050>, 'handle': <function handle at 0x46c5cf8>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x437aed8>, 'get_default_classes': <function get_default_classes at 0x46c51b8>, 'update': <function update at 0x46c5140>, 'get_policy_target': <function get_policy_target at 0x437af50>, '_allowed': <function _allowed at 0x46c50c8>, '__repr__': <function __repr__ at 0x46c52a8>, 'allowed': <function allowed at 0x46c5050>, 'get_default_attrs': <function get_default_attrs at 0x46c5230>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x437ab90>}, '__init__': <function __init__ at 0x46c5d70>, 'name': 'deletefirewall', 'data_type_plural': <django.utils.functional.__proxy__ object at 0x9e74490>, 'action_present': <django.utils.functional.__proxy__ object at 0x9e74690>, 'action_past': <django.utils.functional.__proxy__ object at 0x9e74550>, 'data_type_matched': <function data_type_matched at 0x437aed8>, 'get_default_classes': <function get_default_classes at 0x46c5ed8>, 'get_policy_target': <function get_policy_target at 0x437af50>, '_allowed': <function _allowed at 0x46c5aa0>, '_get_action_name': <function _get_action_name at 0x46c5b18>, '__repr__': <function __repr__ at 0x46c52a8>, 'action': <function action at 0x46c5de8>, 'get_default_attrs': <function get_default_attrs at 0x46c5230>, '__doc__': 'Doc missing.', 'delete': <function delete at 0x46c5e60>}
DeleteFirewallLink.data_type_plural = <django.utils.functional.__proxy__ object at 0x9e74490>
DeleteFirewallLink.data_type_singular = <django.utils.functional.__proxy__ object at 0x9e74590>
DeleteFirewallLink.name = 'deletefirewall'
class openstack_dashboard.dashboards.project.firewalls.tables.DeletePolicyLink(**kwargs)[source]

Bases: horizon.tables.actions.DeleteAction

DeletePolicyLink.action_past = <django.utils.functional.__proxy__ object at 0x9e746d0>
DeletePolicyLink.action_present = <django.utils.functional.__proxy__ object at 0x9e745d0>
DeletePolicyLink.base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_singular': <django.utils.functional.__proxy__ object at 0x9e74610>, 'update': <function update at 0x46c5c08>, 'get_success_url': <function get_success_url at 0x46c5c80>, 'get_param_name': <function get_param_name at 0x46c5398>, 'allowed': <function allowed at 0x46c5050>, 'handle': <function handle at 0x46c5cf8>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x437aed8>, 'get_default_classes': <function get_default_classes at 0x46c51b8>, 'update': <function update at 0x46c5140>, 'get_policy_target': <function get_policy_target at 0x437af50>, '_allowed': <function _allowed at 0x46c50c8>, '__repr__': <function __repr__ at 0x46c52a8>, 'allowed': <function allowed at 0x46c5050>, 'get_default_attrs': <function get_default_attrs at 0x46c5230>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x437ab90>}, '__init__': <function __init__ at 0x46c5d70>, 'name': 'deletepolicy', 'data_type_plural': <django.utils.functional.__proxy__ object at 0x9e74650>, 'action_present': <django.utils.functional.__proxy__ object at 0x9e745d0>, 'action_past': <django.utils.functional.__proxy__ object at 0x9e746d0>, 'data_type_matched': <function data_type_matched at 0x437aed8>, 'get_default_classes': <function get_default_classes at 0x46c5ed8>, 'get_policy_target': <function get_policy_target at 0x437af50>, '_allowed': <function _allowed at 0x46c5aa0>, '_get_action_name': <function _get_action_name at 0x46c5b18>, '__repr__': <function __repr__ at 0x46c52a8>, 'action': <function action at 0x46c5de8>, 'get_default_attrs': <function get_default_attrs at 0x46c5230>, '__doc__': 'Doc missing.', 'delete': <function delete at 0x46c5e60>}
DeletePolicyLink.data_type_plural = <django.utils.functional.__proxy__ object at 0x9e74650>
DeletePolicyLink.data_type_singular = <django.utils.functional.__proxy__ object at 0x9e74610>
DeletePolicyLink.name = 'deletepolicy'
class openstack_dashboard.dashboards.project.firewalls.tables.DeleteRuleLink(**kwargs)[source]

Bases: horizon.tables.actions.DeleteAction

DeleteRuleLink.action_past = <django.utils.functional.__proxy__ object at 0x9e74350>
DeleteRuleLink.action_present = <django.utils.functional.__proxy__ object at 0x9e747d0>
DeleteRuleLink.base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_singular': <django.utils.functional.__proxy__ object at 0x9e74450>, 'update': <function update at 0x46c5c08>, 'get_success_url': <function get_success_url at 0x46c5c80>, 'get_param_name': <function get_param_name at 0x46c5398>, 'allowed': <function allowed at 0x46c5050>, 'handle': <function handle at 0x46c5cf8>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x437aed8>, 'get_default_classes': <function get_default_classes at 0x46c51b8>, 'update': <function update at 0x46c5140>, 'get_policy_target': <function get_policy_target at 0x437af50>, '_allowed': <function _allowed at 0x46c50c8>, '__repr__': <function __repr__ at 0x46c52a8>, 'allowed': <function allowed at 0x46c5050>, 'get_default_attrs': <function get_default_attrs at 0x46c5230>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x437ab90>}, '__init__': <function __init__ at 0x46c5d70>, 'name': 'deleterule', 'data_type_plural': <django.utils.functional.__proxy__ object at 0x9e74510>, 'action_present': <django.utils.functional.__proxy__ object at 0x9e747d0>, 'action_past': <django.utils.functional.__proxy__ object at 0x9e74350>, 'data_type_matched': <function data_type_matched at 0x437aed8>, 'get_default_classes': <function get_default_classes at 0x46c5ed8>, 'get_policy_target': <function get_policy_target at 0x437af50>, '_allowed': <function _allowed at 0x46c5aa0>, '_get_action_name': <function _get_action_name at 0x46c5b18>, '__repr__': <function __repr__ at 0x46c52a8>, 'action': <function action at 0x46c5de8>, 'get_default_attrs': <function get_default_attrs at 0x46c5230>, '__doc__': 'Doc missing.', 'delete': <function delete at 0x46c5e60>}
DeleteRuleLink.data_type_plural = <django.utils.functional.__proxy__ object at 0x9e74510>
DeleteRuleLink.data_type_singular = <django.utils.functional.__proxy__ object at 0x9e74450>
DeleteRuleLink.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 FirewallsTable.Meta[source]
FirewallsTable.Meta.name = 'firewallstable'
FirewallsTable.Meta.row_actions = (<class 'openstack_dashboard.dashboards.project.firewalls.tables.UpdateFirewallLink'>, <class 'openstack_dashboard.dashboards.project.firewalls.tables.DeleteFirewallLink'>)
FirewallsTable.Meta.table_actions = (<class 'openstack_dashboard.dashboards.project.firewalls.tables.AddFirewallLink'>, <class 'openstack_dashboard.dashboards.project.firewalls.tables.DeleteFirewallLink'>)
FirewallsTable.Meta.verbose_name = <django.utils.functional.__proxy__ object at 0x9e7d950>
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

InsertRuleToPolicyLink.base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'name': 'insertrule', '_allowed': <function _allowed at 0x46c50c8>, 'verbose_name': <django.utils.functional.__proxy__ object at 0x9e74950>, 'data_type_matched': <function data_type_matched at 0x437aed8>, 'get_default_classes': <function get_default_classes at 0x46c51b8>, 'update': <function update at 0x46c5140>, 'get_policy_target': <function get_policy_target at 0x437af50>, 'get_link_url': <function get_link_url at 0x9e7aed8>, 'classes': ('ajax-modal', 'btn-update'), '__repr__': <function __repr__ at 0x46c52a8>, 'allowed': <function allowed at 0x46c5050>, 'get_default_attrs': <function get_default_attrs at 0x46c5230>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x437aed8>, 'get_default_classes': <function get_default_classes at 0x46c51b8>, 'update': <function update at 0x46c5140>, 'get_policy_target': <function get_policy_target at 0x437af50>, '_allowed': <function _allowed at 0x46c50c8>, '__repr__': <function __repr__ at 0x46c52a8>, 'allowed': <function allowed at 0x46c5050>, 'get_default_attrs': <function get_default_attrs at 0x46c5230>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x437ab90>}, '__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 0x46c5410>}
InsertRuleToPolicyLink.classes = ('ajax-modal', 'btn-update')
InsertRuleToPolicyLink.get_link_url(policy)[source]
InsertRuleToPolicyLink.name = 'insertrule'
InsertRuleToPolicyLink.verbose_name = <django.utils.functional.__proxy__ object at 0x9e74950>
class openstack_dashboard.dashboards.project.firewalls.tables.PoliciesTable(request, data=None, needs_form_wrapper=None, **kwargs)[source]

Bases: horizon.tables.base.DataTable

class PoliciesTable.Meta[source]
PoliciesTable.Meta.name = 'policiestable'
PoliciesTable.Meta.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'>)
PoliciesTable.Meta.table_actions = (<class 'openstack_dashboard.dashboards.project.firewalls.tables.AddPolicyLink'>, <class 'openstack_dashboard.dashboards.project.firewalls.tables.DeletePolicyLink'>)
PoliciesTable.Meta.verbose_name = <django.utils.functional.__proxy__ object at 0x9e7d310>
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

RemoveRuleFromPolicyLink.base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'name': 'removerule', '_allowed': <function _allowed at 0x46c50c8>, 'verbose_name': <django.utils.functional.__proxy__ object at 0x9e744d0>, 'data_type_matched': <function data_type_matched at 0x437aed8>, 'get_default_classes': <function get_default_classes at 0x46c51b8>, 'update': <function update at 0x46c5140>, 'get_policy_target': <function get_policy_target at 0x437af50>, 'get_link_url': <function get_link_url at 0x9e7af50>, 'classes': ('ajax-modal', 'btn-danger'), '__repr__': <function __repr__ at 0x46c52a8>, 'allowed': <function allowed at 0x46c5050>, 'get_default_attrs': <function get_default_attrs at 0x46c5230>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x437aed8>, 'get_default_classes': <function get_default_classes at 0x46c51b8>, 'update': <function update at 0x46c5140>, 'get_policy_target': <function get_policy_target at 0x437af50>, '_allowed': <function _allowed at 0x46c50c8>, '__repr__': <function __repr__ at 0x46c52a8>, 'allowed': <function allowed at 0x46c5050>, 'get_default_attrs': <function get_default_attrs at 0x46c5230>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x437ab90>}, '__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 0x46c5410>}
RemoveRuleFromPolicyLink.classes = ('ajax-modal', 'btn-danger')
RemoveRuleFromPolicyLink.get_link_url(policy)[source]
RemoveRuleFromPolicyLink.name = 'removerule'
RemoveRuleFromPolicyLink.verbose_name = <django.utils.functional.__proxy__ object at 0x9e744d0>
class openstack_dashboard.dashboards.project.firewalls.tables.RulesTable(request, data=None, needs_form_wrapper=None, **kwargs)[source]

Bases: horizon.tables.base.DataTable

class RulesTable.Meta[source]
RulesTable.Meta.name = 'rulestable'
RulesTable.Meta.row_actions = (<class 'openstack_dashboard.dashboards.project.firewalls.tables.UpdateRuleLink'>, <class 'openstack_dashboard.dashboards.project.firewalls.tables.DeleteRuleLink'>)
RulesTable.Meta.table_actions = (<class 'openstack_dashboard.dashboards.project.firewalls.tables.AddRuleLink'>, <class 'openstack_dashboard.dashboards.project.firewalls.tables.DeleteRuleLink'>)
RulesTable.Meta.verbose_name = <django.utils.functional.__proxy__ object at 0x9e74dd0>
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

UpdateFirewallLink.base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'name': 'updatefirewall', '_allowed': <function _allowed at 0x46c50c8>, 'verbose_name': <django.utils.functional.__proxy__ object at 0x9683150>, 'data_type_matched': <function data_type_matched at 0x437aed8>, 'get_default_classes': <function get_default_classes at 0x46c51b8>, 'update': <function update at 0x46c5140>, 'get_policy_target': <function get_policy_target at 0x437af50>, 'get_link_url': <function get_link_url at 0x9e7ae60>, 'classes': ('ajax-modal', 'btn-update'), '__repr__': <function __repr__ at 0x46c52a8>, 'allowed': <function allowed at 0x46c5050>, 'get_default_attrs': <function get_default_attrs at 0x46c5230>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x437aed8>, 'get_default_classes': <function get_default_classes at 0x46c51b8>, 'update': <function update at 0x46c5140>, 'get_policy_target': <function get_policy_target at 0x437af50>, '_allowed': <function _allowed at 0x46c50c8>, '__repr__': <function __repr__ at 0x46c52a8>, 'allowed': <function allowed at 0x46c5050>, 'get_default_attrs': <function get_default_attrs at 0x46c5230>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x437ab90>}, '__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 0x46c5410>}
UpdateFirewallLink.classes = ('ajax-modal', 'btn-update')
UpdateFirewallLink.get_link_url(firewall)[source]
UpdateFirewallLink.name = 'updatefirewall'
UpdateFirewallLink.verbose_name = <django.utils.functional.__proxy__ object at 0x9683150>
class openstack_dashboard.dashboards.project.firewalls.tables.UpdatePolicyLink(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

UpdatePolicyLink.base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'name': 'updatepolicy', '_allowed': <function _allowed at 0x46c50c8>, 'verbose_name': <django.utils.functional.__proxy__ object at 0x9e74910>, 'data_type_matched': <function data_type_matched at 0x437aed8>, 'get_default_classes': <function get_default_classes at 0x46c51b8>, 'update': <function update at 0x46c5140>, 'get_policy_target': <function get_policy_target at 0x437af50>, 'get_link_url': <function get_link_url at 0x9e7ade8>, 'classes': ('ajax-modal', 'btn-update'), '__repr__': <function __repr__ at 0x46c52a8>, 'allowed': <function allowed at 0x46c5050>, 'get_default_attrs': <function get_default_attrs at 0x46c5230>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x437aed8>, 'get_default_classes': <function get_default_classes at 0x46c51b8>, 'update': <function update at 0x46c5140>, 'get_policy_target': <function get_policy_target at 0x437af50>, '_allowed': <function _allowed at 0x46c50c8>, '__repr__': <function __repr__ at 0x46c52a8>, 'allowed': <function allowed at 0x46c5050>, 'get_default_attrs': <function get_default_attrs at 0x46c5230>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x437ab90>}, '__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 0x46c5410>}
UpdatePolicyLink.classes = ('ajax-modal', 'btn-update')
UpdatePolicyLink.get_link_url(policy)[source]
UpdatePolicyLink.name = 'updatepolicy'
UpdatePolicyLink.verbose_name = <django.utils.functional.__proxy__ object at 0x9e74910>
class openstack_dashboard.dashboards.project.firewalls.tables.UpdateRuleLink(attrs=None, **kwargs)[source]

Bases: horizon.tables.actions.LinkAction

UpdateRuleLink.base_options = {'__module__': 'openstack_dashboard.dashboards.project.firewalls.tables', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'name': 'updaterule', '_allowed': <function _allowed at 0x46c50c8>, 'verbose_name': <django.utils.functional.__proxy__ object at 0x9ded3d0>, 'data_type_matched': <function data_type_matched at 0x437aed8>, 'get_default_classes': <function get_default_classes at 0x46c51b8>, 'update': <function update at 0x46c5140>, 'get_policy_target': <function get_policy_target at 0x437af50>, 'get_link_url': <function get_link_url at 0x9e7ad70>, 'classes': ('ajax-modal', 'btn-update'), '__repr__': <function __repr__ at 0x46c52a8>, 'allowed': <function allowed at 0x46c5050>, 'get_default_attrs': <function get_default_attrs at 0x46c5230>, 'base_options': {'__module__': 'horizon.tables.actions', '__metaclass__': <class 'horizon.tables.actions.BaseActionMetaClass'>, 'data_type_matched': <function data_type_matched at 0x437aed8>, 'get_default_classes': <function get_default_classes at 0x46c51b8>, 'update': <function update at 0x46c5140>, 'get_policy_target': <function get_policy_target at 0x437af50>, '_allowed': <function _allowed at 0x46c50c8>, '__repr__': <function __repr__ at 0x46c52a8>, 'allowed': <function allowed at 0x46c5050>, 'get_default_attrs': <function get_default_attrs at 0x46c5230>, 'base_options': {...}, '__doc__': 'Common base class for all ``Action`` classes.', '__init__': <function __init__ at 0x437ab90>}, '__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 0x46c5410>}
UpdateRuleLink.classes = ('ajax-modal', 'btn-update')
UpdateRuleLink.get_link_url(rule)[source]
UpdateRuleLink.name = 'updaterule'
UpdateRuleLink.verbose_name = <django.utils.functional.__proxy__ object at 0x9ded3d0>
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.workflows Module

Next topic

The openstack_dashboard.dashboards.project.firewalls.views Module

This Page