From bf1204e9c920588adf649033d5db02bb7d75d640 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 20 Jul 2009 23:13:59 -0400 Subject: Our first writable REST API! You can now create new domains through the webserver. Fix the https/http urls. Add the adapter for HTTPCharsets so POSTs work properly. Nice little cargo cult from lazr.restful. --- src/mailman/rest/configuration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mailman/rest/configuration.py') diff --git a/src/mailman/rest/configuration.py b/src/mailman/rest/configuration.py index 07debb617..1c7378010 100644 --- a/src/mailman/rest/configuration.py +++ b/src/mailman/rest/configuration.py @@ -25,6 +25,7 @@ __all__ = [ ] +from lazr.config import as_boolean from lazr.restful.interfaces import IWebServiceConfiguration from zope.interface import implements @@ -51,7 +52,7 @@ class AdminWebServiceConfiguration: @property def use_https(self): """See `IWebServiceConfiguration`.""" - return config.webservice.use_https + return as_boolean(config.webservice.use_https) # This should match the major.minor Mailman version. service_version_uri_prefix = '{0.MAJOR_REV}.{0.MINOR_REV}'.format(version) -- cgit v1.2.3-70-g09d2