diff options
author | Mark Sapiro <mark@msapiro.net> | 2017-06-05 22:47:05 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2017-06-05 22:47:05 -0700 |
commit | 4d3f440efd8b01cd16cb0d0644cac5fce3609b46 (patch) | |
tree | 080580c141e247d83ae7f54623b28d802c0d521f /Mailman/Cgi/create.py | |
parent | 0d11dc90ee6fc9cc61d32ca3ea6819ca95ac1c12 (diff) | |
download | mailman2-4d3f440efd8b01cd16cb0d0644cac5fce3609b46.tar.gz mailman2-4d3f440efd8b01cd16cb0d0644cac5fce3609b46.tar.xz mailman2-4d3f440efd8b01cd16cb0d0644cac5fce3609b46.zip |
Bumped Copyrights and fixed a bug in prior commit.
Diffstat (limited to '')
-rw-r--r-- | Mailman/Cgi/create.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/Cgi/create.py b/Mailman/Cgi/create.py index 9421731f..8f20385d 100644 --- a/Mailman/Cgi/create.py +++ b/Mailman/Cgi/create.py @@ -1,4 +1,4 @@ -# Copyright (C) 2001-2016 by the Free Software Foundation, Inc. +# Copyright (C) 2001-2017 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 @@ -104,7 +104,7 @@ def process_request(doc, cgidata): password = cgidata.getfirst('password', '').strip() confirm = cgidata.getfirst('confirm', '').strip() auth = cgidata.getfirst('auth', '').strip() - langs = cgidata.getfirst('langs', [mm_cfg.DEFAULT_SERVER_LANGUAGE]) + langs = cgidata.getvalue('langs', [mm_cfg.DEFAULT_SERVER_LANGUAGE]) if not isinstance(langs, ListType): langs = [langs] @@ -292,7 +292,7 @@ def process_request(doc, cgidata): # Because the cgi module blows class Dummy: - def getvalue(self, name, default): + def getfirst(self, name, default): return default dummy = Dummy() |