Re: [Mailman-Developers] modifying mailman's source

2003-06-09 Thread Barry Warsaw
On Wed, 2003-05-28 at 17:53, Wesley T. Perdue wrote:
 All,
 
 I need to call an external script whenever a mailing list's membership changes.

Why don't you modify OldStyleMemberships.py?  If you want to feel more
immune from future Mailman updates, I'd suggest subclassing from
OldStyleMemberships, override the few methods you need, and then use the
MailList extension mechanisms to make sure your class gets instantiated
instead of the default one.

-Barry



___
Mailman-Developers mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-developers


[Mailman-Developers] modifying mailman's source

2003-06-02 Thread Wesley T. Perdue
All,

I need to call an external script whenever a mailing list's membership changes.  I'd 
like to pass the name of the modified list to my script.

I've spent some time studying the Mailman source, and I think the file I need to 
modify is ~mailman/Mailman/MailList.py.  I think the functions that need to be 
modified are functions ApprovedAddMember, ApprovedDeleteMember, and 
ChangeMemberAddress.  

Here are the two lines that I'd like to add to the above functions:

metacmd= '~mailman/scripts/my-script.pl' + ' ' + self
os.system(metacmd)

Does this look correct?

I'm using Mailman 2.1.2 in Linux.

BTW, my external script is a solution for automatically maintaining nested lists, 
written in Perl.  I'll share it with the world once I get it working.

Thanks,
Wes

--
Wes Perdue
IT Manager, Greenfield Networks


___
Mailman-Developers mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-developers