On 9/17/21 1:46 AM, tibor.molnar@waltoninstitute.ie wrote:
If I try using this command the following error occurs:
from mailman.testing.documentation import cli command = cli('mailman.commands.cli_addmembers.addmembers') Traceback (most recent call last): ... ModuleNotFoundError: No module named 'mailman.commands.cli_addmembers'
What Mailman version is this? The add_members mailman subcommand was added in 3.3.2 and didn't exist before that. In Mailman 3.3.1 and prior, you need to use the members subcommand with the -a/--add option.
Also note that mailman.testing.documentation.cli is only intended to be used for tests and not production. See https://click.palletsprojects.com/en/8.0.x/testing/#testing-click-applicatio...
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan