summaryrefslogtreecommitdiff
path: root/src/mailman/rest/lists.py
diff options
context:
space:
mode:
authorJ08nY2017-06-04 17:41:29 +0200
committerJ08nY2017-08-30 14:28:28 +0200
commit103fa8caf88f64d18b95ecc36af5ac53152c4269 (patch)
treef949fe52569816956da68e97d459d187b491eace /src/mailman/rest/lists.py
parent057bc0704ab6d975e327c11cac204decfb478c4d (diff)
downloadmailman-list-style-descriptions.tar.gz
mailman-list-style-descriptions.tar.zst
mailman-list-style-descriptions.zip
Diffstat (limited to 'src/mailman/rest/lists.py')
-rw-r--r--src/mailman/rest/lists.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mailman/rest/lists.py b/src/mailman/rest/lists.py
index 4b467afb3..482d3e2d7 100644
--- a/src/mailman/rest/lists.py
+++ b/src/mailman/rest/lists.py
@@ -414,9 +414,10 @@ class Styles:
def __init__(self):
manager = getUtility(IStyleManager)
- style_names = sorted(style.name for style in manager.styles)
+ styles = [dict(name=style.name, description=style.description)
+ for style in manager.styles]
self._resource = dict(
- style_names=style_names,
+ styles=styles,
default=config.styles.default)
def on_get(self, request, response):