On Thu, 2005-05-19 at 06:58, Matthew Newton wrote: > I need to be able to store information about when the list was created > (this is used in the synchronization procedure). I could save this in > another text file, but that is something else to go wrong / get out of > synch. Therefore, is the following safe to do, (assuming I use a > variable that is unlikely to be used by Mailman itself)? Is there a > place I should be using instead of this (i.e. a dictionary in the object > called "localdata")? > > m = MailList.MailList(listname, lock=1) > m.uol_createddate = "something" > m.Save() > m.Unlock()
Yes, it is safe to do, if you pick the right attribute names. I suggest using something like m.x_my_special_thing as the name (i.e. I hereby guarantee that Mailman will not use names that start with 'x_'). -Barry
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Mailman-Developers mailing list [email protected] http://mail.python.org/mailman/listinfo/mailman-developers Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
