Endian banner

endian.openvpn.web.widgets package

Submodules

endian.openvpn.web.widgets.instance module

class OpenVPNInstanceEditor(*args, **kw)

Bases: endian.emi.widgets.grideditor.GridEditor

chained_validators = [<UniqueNameValidator object 654>, <UniquePortValidator object 655>, <RequireIfPresentSelected object 656 present='bridged' required='purple_net' selected=[False]>, <NumberOfInstancesValidator object 657>]
children = <endian.emi.fieldset.FieldsGroup object at 0xd34b5ac>
edit_title = 'Change OpenVPN instance'
entity

alias of OpenVPNInstance

fields_group = <endian.emi.fieldset.FieldsGroup object at 0xd34b5ac>
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': [], 'link': '/include/jquery.min.js'})], 'link': '/toscawidgets/resources/endian.openvpn.web/static/js/instance.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 OpenVPN instance'
class OpenVPNInstanceGrid(*args, **kw)

Bases: endian.emi.widgets.kendogrid.KendoGrid

columns = [<endian.emi.widgets.gridcolumn.Column object at 0xccc870c>, <endian.emi.widgets.gridcolumn.Column object at 0xccc8e6c>, <endian.emi.widgets.gridcolumn.Column object at 0xccc8b8c>, <endian.emi.widgets.gridcolumn.ActionsColumn object at 0xccc89ac>]
entity

alias of OpenVPNInstance

new_label = 'Add new OpenVPN server instance'
order_by = 'name'
order_sort = 'asc'
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([])

endian.openvpn.web.widgets.settings module

class OpenVPNSettingsEditor(*args, **kw)

Bases: endian.emi.widgets.settingseditor.SettingsEditor

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

alias of OpenVPNSettings

fields_group = <endian.emi.fieldset.FieldsGroup object at 0xc9e2a2c>
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.openvpn.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)
unique:
The instance name must be unique
declarative_count = 650
re_name = <_sre.SRE_Pattern object at 0xc56e368>
storage = None
class UniquePortValidator(*args, **kw)

Bases: endian.validators.form.Unique

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:
Must be unique
declarative_count = 651
entity

alias of OpenVPNInstance

storage = None
unique = 'openvpn_port'
class NumberOfCoresValidator(*args, **kw)

Bases: formencode.validators.FormValidator

Validator for checking if more then a defined count of items with a fieldvalue already exist.

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)
to_many:
Not enough CPU cores available
to_many_long:
Not enough CPU cores available to enable this OpenVPN server instance.
declarative_count = 652
field = 'enabled'
class NumberOfInstancesValidator(*args, **kw)

Bases: formencode.validators.FormValidator

Validator for checking if more then 1 instance exists/is enabled

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)
to_many:
Maximum number of OpenVPN server instances exceeded
to_many_long:
Maximum number of OpenVPN server instances exceeded .
declarative_count = 653