[Mailman-Developers] Mysql MemberAdaptor, v1.27
barry at python.org
Mon Nov 10 11:40:14 EST 2003
On Fri, 2003-11-07 at 15:29, Yuan, Cain wrote:
> Hi Kev,
> It's very cool to do a ping() before using those connections. One
> more question here: where are you planning to add the code for close
> those connections when mailman is ready to quit (sometimes we need to
> shutdown mailman manually and of cause we did not want to leave those
> connection in the system)? Python has a __init() but seems no __exit
> functions( correct me if I am wrong).
Mailman's MailList instance currently doesn't have a close() method.
The best you can do is structure things around the pseudo-transactions
of .Load() and .Save(). Not ideal, clearly.
You could experiment with adding an __del__ to MailList.
More information about the Mailman-Developers