Mailman3 command line issue: NameError: name 'cli' is not defined when executing command=cli
Hi, I am following the guide here: https://mailman.readthedocs.io/en/latest/src/mailman/commands/docs/create.ht... and am falling at the first hurdle.
command = cli('mailman.commands.cli_lists.create') NameError: name 'cli' is not defined.
I am running the command in the mailman shell. Doing a help("mailman.commands") works so Python can see that.
I thought it might require pyCLI so I installed that but still no joy.
On 5/13/20 7:10 AM, John W wrote:
Hi, I am following the guide here: https://mailman.readthedocs.io/en/latest/src/mailman/commands/docs/create.ht... and am falling at the first hurdle.
command = cli('mailman.commands.cli_lists.create') NameError: name 'cli' is not defined.
In order to run the doctest snippets, you need to import the helpers. See <https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/docs/documentation.html#documentation-helpers>.
However, If all you want to do is create a list just run the mailman create
command directly instead of trying to run the snippets in
mailman shell
.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
John W
-
Mark Sapiro