diff options
| author | Barry Warsaw | 2010-02-16 17:17:38 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2010-02-16 17:17:38 -0500 |
| commit | cf6e714bc3c68a8b9d788370fbdee4df6764e936 (patch) | |
| tree | 47321a735879e40e50a228db254f6efbc3018a4b /src/mailman/rest/configuration.py | |
| parent | 5d12a07fccf0278293e222ca5a5c4a7653d4f0af (diff) | |
| download | mailman-cf6e714bc3c68a8b9d788370fbdee4df6764e936.tar.gz mailman-cf6e714bc3c68a8b9d788370fbdee4df6764e936.tar.zst mailman-cf6e714bc3c68a8b9d788370fbdee4df6764e936.zip | |
Diffstat (limited to 'src/mailman/rest/configuration.py')
| -rw-r--r-- | src/mailman/rest/configuration.py | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/mailman/rest/configuration.py b/src/mailman/rest/configuration.py index df756d76a..30e2607cb 100644 --- a/src/mailman/rest/configuration.py +++ b/src/mailman/rest/configuration.py @@ -55,18 +55,33 @@ class AdminWebServiceConfiguration(BaseWSGIWebServiceConfiguration): """See `IWebServiceConfiguration`.""" 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) + # We currently have only one active version; the first entry in this list + # should match the major.minor Mailman version. The second entry is just + # an alias for the 'floating' development version. + active_versions = [ + '{0.MAJOR_REV}.{0.MINOR_REV}'.format(version), + 'dev', + ] code_revision = version.VERSION @property def show_tracebacks(self): """See `IWebServiceConfiguration`.""" return config.webservice.show_tracebacks - + default_batch_size = 50 max_batch_size = 300 def get_request_user(self): """See `IWebServiceConfiguration`.""" return None + + @property + def hostname(self): + """See `IWebServiceConfiguration`.""" + return config.webservice.hostname + + @property + def port(self): + """See `IWebServiceConfiguration`.""" + return int(config.webservice.port) |
