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 /bin/newlist | |
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 '')
-rwxr-xr-x | bin/newlist | 6 |
1 files changed, 5 insertions, 1 deletions
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: |