summaryrefslogtreecommitdiff
path: root/Mailman/Gui
diff options
context:
space:
mode:
authorbwarsaw2002-10-02 13:58:31 +0000
committerbwarsaw2002-10-02 13:58:31 +0000
commit6b457c295f03acbd4df4a2f730ca94601936467e (patch)
treeafca18d16e0e9f9c44350abc30d96e93983da2d2 /Mailman/Gui
parent27d6e3959e6c4563dbbd4812230d251237ba9fd9 (diff)
downloadmailman-6b457c295f03acbd4df4a2f730ca94601936467e.tar.gz
mailman-6b457c295f03acbd4df4a2f730ca94601936467e.tar.zst
mailman-6b457c295f03acbd4df4a2f730ca94601936467e.zip
Better support for "funny" characters in subject prefixes.
CookHeaders.py will now be aware that subject_prefix can be a unicode string. _setValue(): Capture changes to subject_prefix and canonstr() it, meaning convert html references to unicode characters. getValue(): Capture access of subject_prefix and uncanonstr() it, meaning convert any non-list-charset characters to their html refs for error free display.
Diffstat (limited to 'Mailman/Gui')
-rw-r--r--Mailman/Gui/General.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Mailman/Gui/General.py b/Mailman/Gui/General.py
index 3e6c6f954..2d7948170 100644
--- a/Mailman/Gui/General.py
+++ b/Mailman/Gui/General.py
@@ -416,6 +416,10 @@ class General(GUIBase):
if opt in val:
newopts |= bitfield
mlist.new_member_options = newopts
+ elif property == 'subject_prefix':
+ # Convert any html entities to Unicode
+ mlist.subject_prefix = Utils.canonstr(
+ val, mlist.preferred_language)
else:
GUIBase._setValue(self, mlist, property, val, doc)
@@ -427,3 +431,9 @@ class General(GUIBase):
address if that address is blank. Resetting these values."""))
mlist.reply_to_address = ''
mlist.reply_goes_to_list = 0
+
+ def getValue(self, mlist, kind, varname, params):
+ if varname <> 'subject_prefix':
+ return None
+ # The subject_prefix may be Unicode
+ return Utils.uncanonstr(mlist.subject_prefix, mlist.preferred_language)