RE: [Mailman-Developers] Mysql MemberAdaptor, v1.27

Nov. 10, 2003
4:40 p.m.
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.
-Barry
7833
Age (days ago)
7833
Last active (days ago)
0 comments
1 participants
participants (1)
-
Barry Warsaw