diff options
| author | cotton | 1998-11-01 18:58:04 +0000 |
|---|---|---|
| committer | cotton | 1998-11-01 18:58:04 +0000 |
| commit | aa98464ae190aee8532d844ca582d44db31d02c5 (patch) | |
| tree | c27716d085ffef00e0e930f2c76fa1689a995d51 /Mailman/versions.py | |
| parent | 8cf5cb147eb2b5aa1cfbddcb16f6590126e95b90 (diff) | |
| download | mailman-aa98464ae190aee8532d844ca582d44db31d02c5.tar.gz mailman-aa98464ae190aee8532d844ca582d44db31d02c5.tar.zst mailman-aa98464ae190aee8532d844ca582d44db31d02c5.zip | |
took out posters_includes_members in favor of having it reference the
member_posting_only variable. made it so that old lists not
expecting this behavior will have member_posting_only turned off in
the event that they have posters defined (preserving the old behavior
where defining posters made the list act as if member_posting_only was
set to "no" whether or not it was set as such).
Diffstat (limited to 'Mailman/versions.py')
| -rw-r--r-- | Mailman/versions.py | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/Mailman/versions.py b/Mailman/versions.py index e3f2df273..80fee9260 100644 --- a/Mailman/versions.py +++ b/Mailman/versions.py @@ -85,9 +85,22 @@ def UpdateOldVars(l, stored_state): setattr(l, "administrivia", mm_cfg.DEFAULT_ADMINISTRIVIA) if not hasattr(l, "admin_member_chunksize"): setattr(l, "admin_member_chunksize", mm_cfg.DEFAULT_ADMIN_MEMBER_CHUNKSIZE) - if not hasattr(l, "posters_includes_members"): - setattr(l, "posters_includes_members", - mm_cfg.DEFAULT_POSTERS_INCLUDES_MEMBERS) + # + # this attribute was added then deleted, so there are a number of + # cases to take care of + # + if hasattr(l, "posters_includes_members"): + if l.posters_includes_members: + if l.posters: + l.member_posting_only = 1 + else: + 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 + def UpdateOldUsers(l): """Transform sense of changed user options.""" |
