beremiz

Parents 9a731b6b356c
Children d47ccfb0a107
runtime web settings: fix wrong declaration of ISettings, add missing entries in WAMP config.
--- a/runtime/NevowServer.py Fri Mar 21 16:09:23 2025 +0100
+++ b/runtime/NevowServer.py Mon Mar 24 15:13:16 2025 +0100
@@ -178,7 +178,6 @@
type='text/css',
href=url.here.child("webinterface_css"))]
-@implementer(ISettings)
class StyledSettingsPage(rend.Page):
addSlash = True
@@ -186,6 +185,7 @@
child_webform_css = webform.defaultCSS
child_webinterface_css = File(paths.AbsNeighbourFile(__file__, 'webinterface.css'), 'text/css')
+@implementer(ISettings)
class SettingsPage(StyledSettingsPage):
def extensions_settings(self, context, data):
--- a/runtime/WampClient.py Fri Mar 21 16:09:23 2025 +0100
+++ b/runtime/WampClient.py Mon Mar 24 15:13:16 2025 +0100
@@ -641,6 +641,10 @@
("protocolOptions.autoPingTimeout",
annotate.Integer(label=_("Auto ping timeout (s)"),
default=wampConfigDefault)),
+ ("clientCert",
+ FileUploadDelete(label=_("File containing client certificate"),
+ file_exists=getClientCertPresence,
+ file_delete=getClientCertDeleteUrl)),
("trustStore",
FileUploadDelete(label=_("File containing server certificate"),
file_exists=getTrustStorePresence,
@@ -648,8 +652,8 @@
("authentication",
annotate.Choice(AUTHENTICATION_TYPES,
required=True,
- label=_("Authentication type"))),
-
+ label=_("Authentication type"),
+ default=wampConfigDefault)),
("verifyHostname",
annotate.Boolean(label=_("Verify hostname matches certificate hostname"),
default=wampConfigDefault)),