diff options
| author | bwarsaw | 2000-03-21 06:11:49 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-03-21 06:11:49 +0000 |
| commit | 669735dfacd49cc0bf856f923cd6861a8c280097 (patch) | |
| tree | 85fdd1d1c7a040da4fb46bc0094cdcfd594f077e /Mailman | |
| parent | 660a755991704b832a18e8cf3a6842b4c8137b4a (diff) | |
| download | mailman-669735dfacd49cc0bf856f923cd6861a8c280097.tar.gz mailman-669735dfacd49cc0bf856f923cd6861a8c280097.tar.zst mailman-669735dfacd49cc0bf856f923cd6861a8c280097.zip | |
UpdateOldVars(): Bug fix for schema updates. This used to set
member_posting_only to 0 unconditionally -- which could whack the
value on every schema update. Now we only do this when upgrading from
data_version 10 or earlier.
Diffstat (limited to 'Mailman')
| -rw-r--r-- | Mailman/versions.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Mailman/versions.py b/Mailman/versions.py index f5df90bf7..57bdcd8ef 100644 --- a/Mailman/versions.py +++ b/Mailman/versions.py @@ -1,4 +1,4 @@ -# Copyright (C) 1998 by the Free Software Foundation, Inc. +# Copyright (C) 1998,1999,2000 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -111,9 +111,11 @@ def UpdateOldVars(l, stored_state): if l.posters: l.member_posting_only = 0 delattr(l, "posters_includes_members") - else: # make sure everyone gets the behavior the list used to have - if l.posters: - l.member_posting_only = 0 + elif l.data_version <= 10 and l.posters: + # make sure everyone gets the behavior the list used to have, but only + # for really old versions of Mailman (1.0b5 or before). Any newer + # version of Mailman should not get this attribute whacked. + l.member_posting_only = 0 # # transfer the list data type for holding members and digest members # to the dict data type starting file format version 11 |
