diff options
author | bwarsaw <> | 2003-02-08 07:14:13 +0000 |
---|---|---|
committer | bwarsaw <> | 2003-02-08 07:14:13 +0000 |
commit | 925200da11d52ae4d7fc664bff898f8050bef687 (patch) | |
tree | 389bbd6c076718221b427d6d6e4fa199a1729ec0 /Mailman/Cgi/roster.py | |
parent | dea51d7d5a5c5d8ea6900a838a12e230b7a000b6 (diff) | |
download | mailman2-925200da11d52ae4d7fc664bff898f8050bef687.tar.gz mailman2-925200da11d52ae4d7fc664bff898f8050bef687.tar.xz mailman2-925200da11d52ae4d7fc664bff898f8050bef687.zip |
Backporting from the trunk.
Diffstat (limited to '')
-rw-r--r-- | Mailman/Cgi/roster.py | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/Mailman/Cgi/roster.py b/Mailman/Cgi/roster.py index 71c06240..2dc0c98d 100644 --- a/Mailman/Cgi/roster.py +++ b/Mailman/Cgi/roster.py @@ -1,17 +1,17 @@ -# Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2003 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. -# +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -# +# # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software +# along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. """Produce subscriber roster, using listinfo form data, roster.html template. @@ -21,7 +21,7 @@ Takes listname in PATH_INFO. # We don't need to lock in this script, because we're never going to change -# data. +# data. import sys import os @@ -61,11 +61,9 @@ def main(): cgidata = cgi.FieldStorage() # messages in form should go in selected language (if any...) - if cgidata.has_key('language'): - lang = cgidata['language'].value - else: + lang = cgidata.getvalue('language') + if not Utils.IsLanguage(lang): lang = mlist.preferred_language - i18n.set_language(lang) # Perform authentication for protected rosters. If the roster isn't |