Re: [Mailman-Developers] Interacting with mailman remotely through APIs / wrappers
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.
John Dennis <jdennis@redhat.com>
___________________________________________________________
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.htm...
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.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
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.
John Dennis <jdennis@redhat.com>
participants (3)
-
Ben Sims
-
John Dennis
-
Mark Sapiro