diff options
| author | Barry Warsaw | 2015-11-21 12:07:27 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2015-11-21 12:07:27 -0500 |
| commit | 0226456bc4cae5f8f4273fdec5b7a9b41bbee072 (patch) | |
| tree | 6f89274323b75ea448ab6bb316b2b7ee4d184524 /src | |
| parent | 1ef59d99758c1bbeced190c6b22db0e160d128ee (diff) | |
| download | mailman-0226456bc4cae5f8f4273fdec5b7a9b41bbee072.tar.gz mailman-0226456bc4cae5f8f4273fdec5b7a9b41bbee072.tar.zst mailman-0226456bc4cae5f8f4273fdec5b7a9b41bbee072.zip | |
Diffstat (limited to 'src')
| -rw-r--r-- | src/mailman/docs/NEWS.rst | 2 | ||||
| -rw-r--r-- | src/mailman/rest/helpers.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/mailman/docs/NEWS.rst b/src/mailman/docs/NEWS.rst index da8ede64f..729f1e1f9 100644 --- a/src/mailman/docs/NEWS.rst +++ b/src/mailman/docs/NEWS.rst @@ -96,6 +96,8 @@ REST * Fix pagination values `start` and `total_size` in the REST API. Given by Aurélien Bompard. (Closes: #154) * JSON representations for held message now include a ``self_link``. + * When ``[devmode]enabled`` is set, the JSON output is sorted. Given by + Aurélien Bompard. Other ----- diff --git a/src/mailman/rest/helpers.py b/src/mailman/rest/helpers.py index bc9b5538a..0cdd40e7e 100644 --- a/src/mailman/rest/helpers.py +++ b/src/mailman/rest/helpers.py @@ -113,7 +113,7 @@ def etag(resource): etag = hashlib.sha1(hashfood).hexdigest() resource['http_etag'] = '"{0}"'.format(etag) return json.dumps(resource, cls=ExtendedEncoder, - sort_keys=as_boolean(config.devmode.enabled)) + sort_keys=as_boolean(config.devmode.enabled)) |
