From b2e780a1de9c2263b56ce77b280989fd22bff3cc Mon Sep 17 00:00:00 2001 From: msapiro <> Date: Tue, 12 Jun 2007 21:53:14 +0000 Subject: admindb.py - Changed to not show the "Discard all messages marked Defer" checkbox when there are only (un)subscribes and no held messages. - Added a separator and heading for "Held Messages" like the ones for "Subscribe Requests" and "Unsubscribe Requests". --- Mailman/Cgi/admindb.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Mailman/Cgi/admindb.py b/Mailman/Cgi/admindb.py index 6e8b58f8..75cc66a0 100644 --- a/Mailman/Cgi/admindb.py +++ b/Mailman/Cgi/admindb.py @@ -190,7 +190,8 @@ def main(): + ' %s' % mlist.real_name)) if details <> 'instructions': form.AddItem(Center(SubmitButton('submit', _('Submit All Data')))) - if not (details or sender or msgid): + nomessages = not mlist.GetHeldMessageIds() + if not (details or sender or msgid or nomessages): form.AddItem(Center( CheckBox('discardalldefersp', 0).Format() + ' ' + @@ -238,7 +239,7 @@ def main(): if addform: doc.AddItem(form) form.AddItem('