On Tue, Jul 23, 2024 at 11:18 PM Greg Newby <gbnewby@petascale.org> wrote:
Hi again folks. I have hundreds of lists to convert from MM2.1 to MM3, and intend to write a Python program do this this rather than running commands in mailman shell (and rather than running 'command()' functions in mailman shell, if possible).
, I get errors. This is a venv installation, following these instructions <https://docs.mailman3.org/en/latest/install/virtualenv.html>. The Mailman3 installation is working fine and I have a handful of lists in production
However, when I write a simple Python program to run the types of commands found in the Mailman docs, such as these < https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/commands/do... that I set up manually.
Okay. Not to go against your favorite method, but looks to me that you're killing a feal with a hammer!
I had some 10 lists to migrate from MM2 to MM3 and I simply did the migrations using bash a shell command line.
for l in list1 list2 list3 ...listN; do blah blah; done
...as documented here: https://docs.mailman3.org/en/latest/migration.html
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html]