Endian banner

endian.openvpn.web.controllers package

Submodules

endian.openvpn.web.controllers.instance module

class OpenVPNInstanceController(schema=None, editorWidget=None, gridWidget=None, storage=None, editOnly=False, gridOnly=False, hideable=False, add_button_enabled=True, edit_always=False, storage_filter=None, do_validate=True, do_store=True, do_delete=True, **params)

Bases: endian.emi.controllers.grid.GridController

editOnly = False
editorWidget

alias of OpenVPNInstanceEditor

gridWidget

alias of OpenVPNInstanceGrid

index_internal(request_type, **args)
onDelete(id, data)
onEnable(id, data)
onStore(id, data)
title = 'OpenVPN server instances'

endian.openvpn.web.controllers.settings module

class OpenVPNSettingsController(*args, **vargs)

Bases: endian.ca.web.controllers.common.BaseCertificateSettingsController

cert_option_field = 'cert_option'
filename_field = 'CERT_FILENAME'
onLoad(data)
onStore(data)
onSubmit(data)
settingsWidget

alias of OpenVPNSettingsEditor

title = 'OpenVPN settings'

Module contents

class OpenVPNController(storage=None, key=None, action=None, check=None, **params)

Bases: endian.emi.controllers.switch.SwitchController

action()
controllers = [<endian.openvpn.web.controllers.settings.OpenVPNSettingsController object at 0xc9e29cc>, <endian.openvpn.web.controllers.instance.OpenVPNInstanceController object at 0xd08d88c>]
description = 'To enable the OpenVPN server click on the switch above.'
entity

alias of OpenVPNSettings

classmethod info(*_decorator__varargs, **args)

Return the certificate detailed info

instance = <endian.openvpn.web.controllers.instance.OpenVPNInstanceController object at 0xd08d88c>
key = 'OPENVPN_ENABLED'
classmethod p12(*_decorator__varargs, **args)

Return the certificate p12 file

classmethod pem(*_decorator__varargs, **args)

Return the certificate pem file

reload_on_enable = True
settings = <endian.openvpn.web.controllers.settings.OpenVPNSettingsController object at 0xc9e29cc>
switch_divider = True
switch_title = 'Enable OpenVPN server'