aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Gui/Privacy.py
diff options
context:
space:
mode:
authorYasuhito FUTATSUKI at POEM <futatuki@poem.co.jp>2017-06-10 18:43:50 +0900
committerYasuhito FUTATSUKI at POEM <futatuki@poem.co.jp>2017-06-10 18:43:50 +0900
commitae4c93087ddb0273f5c5205ef69fed5ae71221d4 (patch)
tree3b1721b212b41df13eddfcd68a1997861944b33e /Mailman/Gui/Privacy.py
parentec87166d9d23a54701af5cc2e4c8f18df399bf14 (diff)
parent4836d8978d0b42b6a361c6a98962aec185e60023 (diff)
downloadmailman2-ae4c93087ddb0273f5c5205ef69fed5ae71221d4.tar.gz
mailman2-ae4c93087ddb0273f5c5205ef69fed5ae71221d4.tar.xz
mailman2-ae4c93087ddb0273f5c5205ef69fed5ae71221d4.zip
Merge lp:mailman/2.1 up to 1716
Diffstat (limited to 'Mailman/Gui/Privacy.py')
-rw-r--r--Mailman/Gui/Privacy.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Mailman/Gui/Privacy.py b/Mailman/Gui/Privacy.py
index 2a9cca26..b1e1eecf 100644
--- a/Mailman/Gui/Privacy.py
+++ b/Mailman/Gui/Privacy.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
@@ -641,9 +641,9 @@ class Privacy(GUIBase):
if cgidata.has_key(deltag):
continue
# Get the data for the current box
- pattern = cgidata.getvalue(reboxtag)
+ pattern = cgidata.getfirst(reboxtag)
try:
- action = int(cgidata.getvalue(actiontag))
+ action = int(cgidata.getfirst(actiontag))
# We'll get a TypeError when the actiontag is missing and the
# .getvalue() call returns None.
except (ValueError, TypeError):
@@ -682,7 +682,7 @@ class Privacy(GUIBase):
# Was this an add item?
if cgidata.has_key(addtag):
# Where should the new one be added?
- where = cgidata.getvalue(wheretag)
+ where = cgidata.getfirst(wheretag)
if where == 'before':
# Add a new empty rule box before the current one
rules.append(('', mm_cfg.DEFER, True))