summaryrefslogtreecommitdiff
path: root/Mailman/Cgi/admindb.py
diff options
context:
space:
mode:
authorbwarsaw2000-06-20 05:42:22 +0000
committerbwarsaw2000-06-20 05:42:22 +0000
commit7488da453cb8f2490074ba78a656d0618c0249ce (patch)
treea75923c0891932923b5de9a698cd9a62d89717c5 /Mailman/Cgi/admindb.py
parentd70033da8af8991e6a9cf3dd58aa5c8f87c100e2 (diff)
downloadmailman-7488da453cb8f2490074ba78a656d0618c0249ce.tar.gz
mailman-7488da453cb8f2490074ba78a656d0618c0249ce.tar.zst
mailman-7488da453cb8f2490074ba78a656d0618c0249ce.zip
PrintPostRequest(), PrintAddMemberRequest(): Use the new values
parameter to RadioButtonArray() constructor, and use the new symbolic constants instead of the hardcoded values.
Diffstat (limited to 'Mailman/Cgi/admindb.py')
-rw-r--r--Mailman/Cgi/admindb.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Mailman/Cgi/admindb.py b/Mailman/Cgi/admindb.py
index 8cbcd37c9..e1fd500b2 100644
--- a/Mailman/Cgi/admindb.py
+++ b/Mailman/Cgi/admindb.py
@@ -185,7 +185,8 @@ def PrintRequests(mlist, doc, form):
def PrintAddMemberRequest(mlist, id, table):
time, addr, passwd, digest = mlist.GetRecord(id)
table.AddRow([addr,
- RadioButtonArray(id, ('Subscribe', 'Refuse')),
+ RadioButtonArray(id, ('Subscribe', 'Refuse'),
+ values=(mm_cfg.APPROVE, mm_cfg.REJECT)),
TextBox('comment-%d' % id, size=60)
])
@@ -213,7 +214,7 @@ def PrintPostRequest(mlist, id, info, total, count, form):
# TBD: kludge to remove id from requests.db. value==2 means
# discard the message.
try:
- mlist.HandleRequest(id, 3, None, None, None, None)
+ mlist.HandleRequest(id, mm_cfg.DISCARD)
except Errors.LostHeldMessage:
pass
return
@@ -229,6 +230,8 @@ def PrintPostRequest(mlist, id, info, total, count, form):
t.AddRow([
Bold('Action:'),
RadioButtonArray(id, ('Defer', 'Approve', 'Reject', 'Discard'),
+ values=(mm_cfg.DEFER, mm_cfg.APPROVE, mm_cfg.REJECT,
+ mm_cfg.DISCARD),
checked=0)
])
t.AddCellInfo(row+3, col-1, align='right')