diff options
| author | J08nY | 2017-06-04 17:41:29 +0200 |
|---|---|---|
| committer | J08nY | 2017-08-30 14:28:28 +0200 |
| commit | 103fa8caf88f64d18b95ecc36af5ac53152c4269 (patch) | |
| tree | f949fe52569816956da68e97d459d187b491eace /src/mailman/rest/docs/lists.rst | |
| parent | 057bc0704ab6d975e327c11cac204decfb478c4d (diff) | |
| download | mailman-list-style-descriptions.tar.gz mailman-list-style-descriptions.tar.zst mailman-list-style-descriptions.zip | |
Diffstat (limited to 'src/mailman/rest/docs/lists.rst')
| -rw-r--r-- | src/mailman/rest/docs/lists.rst | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mailman/rest/docs/lists.rst b/src/mailman/rest/docs/lists.rst index 6a034df94..67cbb697a 100644 --- a/src/mailman/rest/docs/lists.rst +++ b/src/mailman/rest/docs/lists.rst @@ -191,10 +191,13 @@ Apply a style at list creation time of a particular type, e.g. discussion lists. We can see which styles are available, and which is the default style. - >>> dump_json('http://localhost:9001/3.0/lists/styles') - default: legacy-default - http_etag: "..." - style_names: ['legacy-announce', 'legacy-default'] + >>> json = call_http('http://localhost:9001/3.0/lists/styles') + >>> json['default'] + 'legacy-default' + >>> for style in json['styles']: + ... print('{}: {}'.format(style['name'], style['description'])) + legacy-announce: Announce only mailing list style. + legacy-default: Ordinary discussion mailing list style. When creating a list, if we don't specify a style to apply, the default style is used. However, we can provide a style name in the POST data to choose a |
