diff options
author | Mark Sapiro <mark@msapiro.net> | 2008-03-03 10:06:28 -0800 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2008-03-03 10:06:28 -0800 |
commit | dd3ada936da9f0f24f41f113902d35b20e895086 (patch) | |
tree | b0c69a1ecda5ca3d651b0dd28967aa48523f4b50 | |
parent | d14353a411404216f3d93d7397d91647b0959da5 (diff) | |
download | mailman2-dd3ada936da9f0f24f41f113902d35b20e895086.tar.gz mailman2-dd3ada936da9f0f24f41f113902d35b20e895086.tar.xz mailman2-dd3ada936da9f0f24f41f113902d35b20e895086.zip |
Fixed bin/newlist to add the list's preferred language to the list's
available_languages if it is other than the server's default language
(1906368).
Diffstat (limited to '')
-rw-r--r-- | NEWS | 4 | ||||
-rwxr-xr-x | bin/newlist | 6 |
2 files changed, 9 insertions, 1 deletions
@@ -158,6 +158,10 @@ Internationalization - Fixed the command line scripts add_members, sync_members and clone_member to properly handle banned addresses (1904737). + - Fixed bin/newlist to add the list's preferred language to the list's + available_languages if it is other than the server's default language + (1906368). + Miscellaneous - Brad Knowles' mailman daily status report script updated to 0.0.17. diff --git a/bin/newlist b/bin/newlist index 70e9cb8c..08b86e08 100755 --- a/bin/newlist +++ b/bin/newlist @@ -193,7 +193,11 @@ def main(): oldmask = os.umask(002) try: try: - mlist.Create(listname, owner_mail, pw) + if lang == mm_cfg.DEFAULT_SERVER_LANGUAGE: + langs = [lang] + else: + langs = [lang, mm_cfg.DEFAULT_SERVER_LANGUAGE] + mlist.Create(listname, owner_mail, pw, langs=langs) finally: os.umask(oldmask) except Errors.BadListNameError, s: |