diff options
| author | Barry Warsaw | 2009-02-12 20:36:21 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-02-12 20:36:21 -0500 |
| commit | 62f4c909f90535986614a411db982bdcccaec3a1 (patch) | |
| tree | 2fe5dd3316cea73f63cb34230d848758050eade3 /src/mailman/styles/default.py | |
| parent | 2b28803e7165e91d812cd9e9e3804a6d9bdce8a1 (diff) | |
| download | mailman-62f4c909f90535986614a411db982bdcccaec3a1.tar.gz mailman-62f4c909f90535986614a411db982bdcccaec3a1.tar.zst mailman-62f4c909f90535986614a411db982bdcccaec3a1.zip | |
Much clean up of the language code, though more can be done. Factor out the
language manager stuff into a separate Language class, and be clearer in the
APIs about whether we want a language code or a Language instance.
The impetus to this was to get rid of Utils.GetCharSet(), which is done.
Diffstat (limited to 'src/mailman/styles/default.py')
| -rw-r--r-- | src/mailman/styles/default.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/styles/default.py b/src/mailman/styles/default.py index 0f7869a75..ea4e1a342 100644 --- a/src/mailman/styles/default.py +++ b/src/mailman/styles/default.py @@ -30,7 +30,7 @@ import datetime from zope.interface import implements -from mailman import Utils +from mailman.config import config from mailman.i18n import _ from mailman.interfaces import Action, NewsModeration from mailman.interfaces.mailinglist import ( @@ -157,8 +157,8 @@ $fqdn_listname ${listinfo_page} """ # Set this to Never if the list's preferred language uses us-ascii, - # otherwise set it to As Needed - if Utils.GetCharSet(mlist.preferred_language) == 'us-ascii': + # otherwise set it to As Needed. + if mlist.preferred_language.charset == 'us-ascii': mlist.encode_ascii_prefixes = 0 else: mlist.encode_ascii_prefixes = 2 |
