Endian banner

endian.ipsec.web.widgets package

Submodules

endian.ipsec.web.widgets.connection module

class ConnectionGrid(*args, **kw)

Bases: endian.emi.widgets.kendogrid.KendoGrid

columns = [<endian.emi.widgets.gridcolumn.Column object at 0xc18cacc>, <endian.emi.widgets.gridcolumn.Column object at 0xc18cc6c>, <endian.emi.widgets.gridcolumn.Column object at 0xb3c2e4c>, <endian.emi.widgets.gridcolumn.Column object at 0xb3c24cc>, <endian.emi.widgets.gridcolumn.Column object at 0xb3c2d4c>, <endian.emi.widgets.gridcolumn.ActionsColumn object at 0xb3c28ec>]
entity

alias of IPsecConnection

new_label = 'Add new connection'
params = frozenset(['cache', 'fields', 'on_detail_init', 'strip_name', 'on_change', 'disable_storage_filter_query', 'entity', 'disabled', 'search_keys', 'nestedgrid_filter_field', 'page_size', 'server_filtering', 'controllername', 'help_text', 'id', 'nestedgrid', 'order_sort', 'style', 'group', 'detail_template', 'on_detail_expand', 'multicolumn_searchbar', 'multi_items_actions', 'label_text', 'on_data_bound', 'is_required', 'exclude_from_search', 'server_aggregates', 'suppress_label', 'show_error', 'server_sorting', 'parameter_map', 'ajax', 'hide_header', 'order_by', 'selectable', 'url_path', 'data', 'legend_enabled', 'sortable', 'name', 'on_grid_change', 'url', 'css_class', 'on_detail_collapse', 'server_grouping', 'server_paging', 'autorefresh_interval', 'legend_fields', 'nestedgrid_filter_value', 'datasource', 'css_classes', 'autobind', 'container_attrs', 'nestedgrid_server_filtering', 'attrs'])
selectable = False
sortable = True
source_vars = frozenset([])
class ConnectionEditor(*args, **kw)

Bases: endian.emi.widgets.grideditor.GridEditor

chained_validators = [<UniqueNameValidator object 540>, <DontRenameIfConnectedValidator object 541>, <CertificateValidator object 542 select_name='auth_type'>, <AuthenticationValidator object 543>, <UniqueLocalIDValidator object 544>]
children = <endian.emi.fieldset.FieldsGroup object at 0xc30e7ec>
edit_title = 'Change connection'
entity

alias of IPsecConnection

fields_group = <endian.emi.fieldset.FieldsGroup object at 0xc30e7ec>
javascript = [JSLink(None, children=[], **{'javascript': [JSLink(None, children=[], **{'javascript': [JSLink(None, children=[], **{'javascript': [], 'link': '/include/jquery.min.js'})], 'link': '/include/kendo.core.min.js'}), JSLink(None, children=[], **{'javascript': [JSLink(None, children=[], **{'javascript': [JSLink(None, children=[], **{'javascript': [], 'link': '/include/jquery.min.js'})], 'link': '/include/kendo.core.min.js'})], 'link': '/include/kendo.popup.min.js'})], 'link': '/include/kendo.tooltip.min.js'}), JSLink(None, children=[], **{'javascript': [JSLink(None, children=[], **{'javascript': [JSLink(None, children=[], **{'javascript': [], 'link': '/include/jquery.min.js'})], 'link': '/include/jquery.ui.core.min.js'}), JSLink(None, children=[], **{'javascript': [JSLink(None, children=[], **{'javascript': [], 'link': '/include/jquery.min.js'})], 'link': '/include/jquery.ui.widget.min.js'})], 'link': '/include/jquery.ui.accordion.endian.js'}), JSLink(None, children=[], **{'javascript': [JSLink(None, children=[], **{'javascript': [], 'link': '/include/jquery.min.js'})], 'link': '/toscawidgets/resources/endian.ipsec.web/static/js/connection.js'})]
params = frozenset(['show_control', 'strip_name', 'disabled', 'attrs', 'container_attrs', 'help_text', 'id', 'show_labels', 'submit_text', 'style', 'hover_help', 'title', 'show_error', 'show_children_errors', 'chained_validators', 'is_required', 'method', 'columns', 'label_text', 'suppress_label', 'container_id', 'legend', 'enctype', 'name', 'table_attrs', 'info_text', 'css_class', 'fields_group', 'separator', 'edit_title', 'css_classes', 'action', 'expands', 'save_text'])
source_vars = frozenset([])
title = 'Add new connection'
class ConnectionInfoWidget(*args, **kw)

Bases: endian.emi.widgets.container.Container

params = frozenset(['label_text', 'suppress_label', 'strip_name', 'css_classes', 'disabled', 'attrs', 'container_attrs', 'help_text', 'id', 'enctype', 'show_labels', 'style', 'name', 'info_text', 'css_class', 'legend', 'separator', 'show_error', 'show_children_errors', 'is_required', 'expands', 'columns'])
source_vars = frozenset([])
template = 'endian.ipsec.web.templates.connection_info'

endian.ipsec.web.widgets.settings module

class IPsecSettingsEditor(*args, **kw)

Bases: endian.emi.widgets.settingseditor.SettingsEditor

chained_validators = [<CertificateValidator object 520 select_name='cert_option'>]
children = <endian.emi.fieldset.FieldsGroup object at 0xb96daec>
entity

alias of IPsecSettings

fields_group = <endian.emi.fieldset.FieldsGroup object at 0xb96daec>
params = frozenset(['show_control', 'strip_name', 'disabled', 'attrs', 'container_attrs', 'help_text', 'id', 'show_labels', 'submit_text', 'style', 'hover_help', 'title', 'show_error', 'show_children_errors', 'chained_validators', 'is_required', 'method', 'columns', 'label_text', 'suppress_label', 'container_id', 'legend', 'enctype', 'name', 'table_attrs', 'info_text', 'css_class', 'fields_group', 'separator', 'css_classes', 'action', 'expands', 'save_text'])
source_vars = frozenset([])
within_box = True

endian.ipsec.web.widgets.validators module

class UniqueNameValidator(*args, **kw)

Bases: formencode.validators.FormValidator

Validator for unique connection name

Messages

badType:
The input must be a string (not a %(type)s: %(value)r)
empty:
Please enter a value
invalid:
The name must only contains letters and numbers
noneType:
The input must be a string (not None)
reserved:
Invalid reserved name
unique:
The connection name must be unique
declarative_count = 521
re_name = <_sre.SRE_Pattern object at 0xc56e368>
storage = None
class AuthenticationValidator(*args, **kw)

Bases: formencode.validators.FormValidator

Validator for authentication options

Messages

already_used:
This certificate is already used for another connection
badType:
The input must be a string (not a %(type)s: %(value)r)
duplicate_peerid:
When used, local ID and remote ID must not be equal
empty:
Please enter a value
missing_remote_peerid:
You must specify a correct Distinguished Name (DN) for this authentication
missing_value:
Please enter a value
noneType:
The input must be a string (not None)
psk_already_exist:
You can only define one roadwarrior connection when using pre-shared key authentication
secret_invalid:
Invalid characters found in pre-shared key
secret_short:
Pre-shared key is too short
declarative_count = 523
re_secret = <_sre.SRE_Pattern object at 0xbf19130>
storage = None
class DontRenameIfConnectedValidator(*args, **kw)

Bases: formencode.validators.FormValidator

Block renamining of connected tunnels

Messages

badType:
The input must be a string (not a %(type)s: %(value)r)
connected:
Cannot rename an ongoing connection
empty:
Please enter a value
noneType:
The input must be a string (not None)
declarative_count = 524
storage = None
class UniqueLocalIDValidator(*args, **kw)

Bases: formencode.validators.FormValidator

Validator for unique local IDs

Messages

badType:
The input must be a string (not a %(type)s: %(value)r)
empty:
Please enter a value
noneType:
The input must be a string (not None)
unique:
The Local ID must be unique, when multiple Net-to-Net connections are defined
declarative_count = 522
storage = None

Module contents

class IPsecSettingsEditor(*args, **kw)

Bases: endian.emi.widgets.settingseditor.SettingsEditor

chained_validators = [<CertificateValidator object 520 select_name='cert_option'>]
children = <endian.emi.fieldset.FieldsGroup object at 0xb96daec>
entity

alias of IPsecSettings

fields_group = <endian.emi.fieldset.FieldsGroup object at 0xb96daec>
params = frozenset(['show_control', 'strip_name', 'disabled', 'attrs', 'container_attrs', 'help_text', 'id', 'show_labels', 'submit_text', 'style', 'hover_help', 'title', 'show_error', 'show_children_errors', 'chained_validators', 'is_required', 'method', 'columns', 'label_text', 'suppress_label', 'container_id', 'legend', 'enctype', 'name', 'table_attrs', 'info_text', 'css_class', 'fields_group', 'separator', 'css_classes', 'action', 'expands', 'save_text'])
source_vars = frozenset([])
within_box = True
class ConnectionGrid(*args, **kw)

Bases: endian.emi.widgets.kendogrid.KendoGrid

columns = [<endian.emi.widgets.gridcolumn.Column object at 0xc18cacc>, <endian.emi.widgets.gridcolumn.Column object at 0xc18cc6c>, <endian.emi.widgets.gridcolumn.Column object at 0xb3c2e4c>, <endian.emi.widgets.gridcolumn.Column object at 0xb3c24cc>, <endian.emi.widgets.gridcolumn.Column object at 0xb3c2d4c>, <endian.emi.widgets.gridcolumn.ActionsColumn object at 0xb3c28ec>]
entity

alias of IPsecConnection

new_label = 'Add new connection'
params = frozenset(['cache', 'fields', 'on_detail_init', 'strip_name', 'on_change', 'disable_storage_filter_query', 'entity', 'disabled', 'search_keys', 'nestedgrid_filter_field', 'page_size', 'server_filtering', 'controllername', 'help_text', 'id', 'nestedgrid', 'order_sort', 'style', 'group', 'detail_template', 'on_detail_expand', 'multicolumn_searchbar', 'multi_items_actions', 'label_text', 'on_data_bound', 'is_required', 'exclude_from_search', 'server_aggregates', 'suppress_label', 'show_error', 'server_sorting', 'parameter_map', 'ajax', 'hide_header', 'order_by', 'selectable', 'url_path', 'data', 'legend_enabled', 'sortable', 'name', 'on_grid_change', 'url', 'css_class', 'on_detail_collapse', 'server_grouping', 'server_paging', 'autorefresh_interval', 'legend_fields', 'nestedgrid_filter_value', 'datasource', 'css_classes', 'autobind', 'container_attrs', 'nestedgrid_server_filtering', 'attrs'])
selectable = False
sortable = True
source_vars = frozenset([])
class ConnectionEditor(*args, **kw)

Bases: endian.emi.widgets.grideditor.GridEditor

chained_validators = [<UniqueNameValidator object 540>, <DontRenameIfConnectedValidator object 541>, <CertificateValidator object 542 select_name='auth_type'>, <AuthenticationValidator object 543>, <UniqueLocalIDValidator object 544>]
children = <endian.emi.fieldset.FieldsGroup object at 0xc30e7ec>
edit_title = 'Change connection'
entity

alias of IPsecConnection

fields_group = <endian.emi.fieldset.FieldsGroup object at 0xc30e7ec>
javascript = [JSLink(None, children=[], **{'javascript': [JSLink(None, children=[], **{'javascript': [JSLink(None, children=[], **{'javascript': [], 'link': '/include/jquery.min.js'})], 'link': '/include/kendo.core.min.js'}), JSLink(None, children=[], **{'javascript': [JSLink(None, children=[], **{'javascript': [JSLink(None, children=[], **{'javascript': [], 'link': '/include/jquery.min.js'})], 'link': '/include/kendo.core.min.js'})], 'link': '/include/kendo.popup.min.js'})], 'link': '/include/kendo.tooltip.min.js'}), JSLink(None, children=[], **{'javascript': [JSLink(None, children=[], **{'javascript': [JSLink(None, children=[], **{'javascript': [], 'link': '/include/jquery.min.js'})], 'link': '/include/jquery.ui.core.min.js'}), JSLink(None, children=[], **{'javascript': [JSLink(None, children=[], **{'javascript': [], 'link': '/include/jquery.min.js'})], 'link': '/include/jquery.ui.widget.min.js'})], 'link': '/include/jquery.ui.accordion.endian.js'}), JSLink(None, children=[], **{'javascript': [JSLink(None, children=[], **{'javascript': [], 'link': '/include/jquery.min.js'})], 'link': '/toscawidgets/resources/endian.ipsec.web/static/js/connection.js'})]
params = frozenset(['show_control', 'strip_name', 'disabled', 'attrs', 'container_attrs', 'help_text', 'id', 'show_labels', 'submit_text', 'style', 'hover_help', 'title', 'show_error', 'show_children_errors', 'chained_validators', 'is_required', 'method', 'columns', 'label_text', 'suppress_label', 'container_id', 'legend', 'enctype', 'name', 'table_attrs', 'info_text', 'css_class', 'fields_group', 'separator', 'edit_title', 'css_classes', 'action', 'expands', 'save_text'])
source_vars = frozenset([])
title = 'Add new connection'