diff options
| author | bwarsaw | 2001-07-29 21:23:00 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-07-29 21:23:00 +0000 |
| commit | fe3413846fb419adb5093a6c579fc383e63277a9 (patch) | |
| tree | a0e78309f69f6ec73e1e327333e0167130838a40 /Mailman/Cgi/options.py | |
| parent | 9bb06a8080632c0bedddf8182823da8b3b24363f (diff) | |
| download | mailman-fe3413846fb419adb5093a6c579fc383e63277a9.tar.gz mailman-fe3413846fb419adb5093a6c579fc383e63277a9.tar.zst mailman-fe3413846fb419adb5093a6c579fc383e63277a9.zip | |
Diffstat (limited to 'Mailman/Cgi/options.py')
| -rw-r--r-- | Mailman/Cgi/options.py | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/Mailman/Cgi/options.py b/Mailman/Cgi/options.py index e13442e84..4a08a2a77 100644 --- a/Mailman/Cgi/options.py +++ b/Mailman/Cgi/options.py @@ -417,19 +417,13 @@ def main(): for flag, newval in newvals: # Handle language settings differently if flag == SETLANGUAGE: - mlist.SetPreferredLanguage(user, newval) + mlist.setMemberLanguage(user, newval) continue mlist.setMemberOption(user, flag, newval) - # Set the topics information - # FIXME: should use MemberAdaptor API - if topicnames: - mlist.topics_userinterest[user] = topicnames - elif mlist.topics_userinterest.has_key(user): - del mlist.topics_userinterest[user] - - # All done + # Set the topics information. + mlist.setMemberTopics(user, topicnames) mlist.Save() finally: mlist.Unlock() @@ -582,7 +576,7 @@ def options_page(mlist, doc, user, cpuser, userlang, message=''): # Create the topics radios. BAW: what if the list admin deletes a topic, # but the user still wants to get that topic message? - usertopics = mlist.topics_userinterest.get(user, []) + usertopics = mlist.getMemberTopics(user) if mlist.topics: table = Table(border="0") for name, pattern, description, emptyflag in mlist.topics: |
