[Mailman-Developers] Subscribers suddenly "disappear"

Mark Sapiro mark at msapiro.net
Wed Aug 6 06:03:15 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mark Sapiro wrote:

| What I suggest for the moment is to just delete lines 594-603 of
| Mailman/MailList.py which includes the following 4 lines and the
| preceding comment.
|
|>>             mtime = os.path.getmtime(dbfile)
|>>             if mtime <= self.__timestamp:
|>>                 # File is not newer
|>>                 return None, None


Ooops!. That won't quite do it. you can't just remove the

~             mtime = os.path.getmtime(dbfile)

line as mtime is referenced later and will be undefined. A patch is
attached which has been applied and tested. I ran the test script twice
with this patch installed with no lost subscribers. It isn't the final
patch which should remove __timestamp completely and won't remove all
the comment, but it will do as a workaround.

- --
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)

iD8DBQFImSKDVVuXXpU7hpMRArrKAJ9K2fA8MzI7Iarp0WfnNClwtwVbdACfaxCO
Xsx7ru3fK2/v5ZRw0YHYU9s=
=BdZw
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: MailList.patch.txt
URL: <http://mail.python.org/pipermail/mailman-developers/attachments/20080805/f09c9fb8/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MailList.patch.txt.sig
Type: application/octet-stream
Size: 65 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/mailman-developers/attachments/20080805/f09c9fb8/attachment.obj>


More information about the Mailman-Developers mailing list