Re: [Mailman-Developers] [GSoC 2014] Mailman CLI Project
On May 03, 2014, at 09:59 AM, Tom Browder wrote:
Using the latest cli commands as shown in Rajeev's /src/mailmanclient/cli/docs/using.txt would be for the "default" list style:
test_one = example.create_list('test-one')
Then, for other styles, we could use something like (pardon my pseudo code):
test_one = example.create_list('test-one', style='read-only')
Looking briefly at the cli code I see nothing about the list attributes Barry mentioned in last year's thread referenced above, so I'm not sure how this would all fit together, but I think it needs to be considered.
Using MM3's internal API:
from mailman.app.lifecycle import create_list mylist = create_list('test@example.com', style='legacy-announce')
Using the REST API
http://pythonhosted.org//mailman/src/mailman/rest/docs/lists.html#apply-a-st...
The CLI (i.e. mailman create
command) does not yet accept a --style
argument, but that would be pretty trivial to add.
Note that currently only the legacy-default and legacy-announce styles are defined by default.
Cheers, -Barry
On Sat, May 3, 2014 at 12:21 PM, Barry Warsaw <barry@list.org> wrote:
On May 03, 2014, at 09:59 AM, Tom Browder wrote: ...
Then, for other styles, we could use something like (pardon my pseudo code):
test_one = example.create_list('test-one', style='read-only') ... The CLI (i.e.
mailman create
command) does not yet accept a --style argument, but that would be pretty trivial to add.Note that currently only the legacy-default and legacy-announce styles are defined by default.
Great, the 'legacy-announce' style sounds like a 'read-only'/'news' list! I hope so because that's just what I'm looking for.
Best,
-Tom
participants (2)
-
Barry Warsaw
-
Tom Browder