Thanks John,
I had been hoping to avoid command line calls. However, I'm probably just putting unnecessary obstacles up, so unless anybody advises against it I'm going to use subprocess to call the scripts I have to and leave it at that.
Ben
----- Original Message ---- From: John Dennis jdennis@redhat.com To: Ben Sims benjaminsims@yahoo.com Cc: Lennon Day-Reynolds lennon@reed.edu; mailman-developers@python.org Sent: Thursday, 24 May, 2007 6:21:42 PM Subject: Re: [Mailman-Developers] Interacting with mailman remotely through APIs / wrappers
On Thu, 2007-05-24 at 09:10 -0700, Ben Sims wrote:
Regarding the Python APIs, I wondered if there is any documentation available? At the moment I am going over the source, which is a bit heavy going.
For example, I am having trouble working out if it is possible to create a new list from the Python modules directly?
Any pointers to the right docs here would be appreciated.
Your best bet might be to look at the command line interfaces under the /bin directory in the source tarball. For the case cited you'll want to look at bin/newlist.
Ben Sims wrote:
I had been hoping to avoid command line calls. However, I'm probably just putting unnecessary obstacles up, so unless anybody advises against it I'm going to use subprocess to call the scripts I have to and leave it at that.
I'm not sure what John was actually trying to say, but what I would have said at the time had I not been away is that it is certainly possible to create a list using the Mailman/* modules, and see the code in bin/newlist to see how it's done.
On Thu, 2007-05-31 at 15:44 -0700, Mark Sapiro wrote:
Ben Sims wrote:
I had been hoping to avoid command line calls. However, I'm probably just putting unnecessary obstacles up, so unless anybody advises against it I'm going to use subprocess to call the scripts I have to and leave it at that.
I'm not sure what John was actually trying to say, but what I would have said at the time had I not been away is that it is certainly possible to create a list using the Mailman/* modules, and see the code in bin/newlist to see how it's done.
Yes, that's what I meant, it's a good example of how to use the mailman API directly.