REST API: create list: list styles

I've read that List Styles are essentially python plugins and/or hard coded into the source... Ugh.
I was wondering, instead of hacking together some Python code, as I'm a humble PHP dev... Is it possible...
To pass all "style" values to the REST API upon creating a list "manually"? Essentially setting all the options on creation.
Where can I find a full list of options that can be set on a list, and their accepted values (boolean, string, etc)
Thanks in advance!

Peter Knowles via Mailman-users writes:
I've read that List Styles are essentially python plugins and/or hard coded into the source... Ugh.
There were a couple of semi-successful GSoC projects that added an export/import facility and a sort of dashboard for managing styles. Never got integrated because Google's schedule was massively inconvenient for Indian and Japanese students (and faculty of Japanese universities!) respectively. It's on my list, I'll bump the priority but it will probably be a couple of months to a merge request.
- To pass all "style" values to the REST API upon creating a list "manually"? Essentially setting all the options on creation.
I don't know offhand and need to run off now, but if the REST API for list creation accepts a JSON argument (I'm pretty sure it does), you should be able to set everything that way.
The online REST API documentation will be helpful but is probably not complete: https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/rest/docs/r...
- Where can I find a full list of options that can be set on a list, and their accepted values (boolean, string, etc)
mailman/src/mailman/interfaces/mailinglist.py (I may have pluralization wrong, use completion :-) is the authoritative list (that's *why* we use Zope interfaces). You may need to go to other files for certain values (eg, public/private/disabled archives), look for import statements at the top and add .py to the file name.
-- GNU Mailman consultant (installation, migration, customization) Sirius Open Source https://www.siriusopensource.com/ Software systems consulting in Europe, North America, and Japan
participants (2)
-
Peter Knowles
-
Stephen J. Turnbull