diff options
author | tkikuchi <> | 2004-12-07 13:13:35 +0000 |
---|---|---|
committer | tkikuchi <> | 2004-12-07 13:13:35 +0000 |
commit | 82d19ae2541516c7ee681e1b7727fcea4de3db76 (patch) | |
tree | 96d734468d65e4db0f9cea6fb1959c9f38e32ec4 /Mailman/Cgi | |
parent | 0eba1be921cd0ff4a2701cdc0e379120c79d5a62 (diff) | |
download | mailman2-82d19ae2541516c7ee681e1b7727fcea4de3db76.tar.gz mailman2-82d19ae2541516c7ee681e1b7727fcea4de3db76.tar.xz mailman2-82d19ae2541516c7ee681e1b7727fcea4de3db76.zip |
[ mailman-Bugs-1047532 ] problem with "discard all ..."
[ mailman-Patches-1080477 ] discard all marked as defer
Fixed in a different way for what "all" means may confusing when partial
message list are shown. Also fixed 'details' case.
Diffstat (limited to 'Mailman/Cgi')
-rw-r--r-- | Mailman/Cgi/admindb.py | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/Mailman/Cgi/admindb.py b/Mailman/Cgi/admindb.py index 38d08a2c..e46a4b22 100644 --- a/Mailman/Cgi/admindb.py +++ b/Mailman/Cgi/admindb.py @@ -179,7 +179,7 @@ def main(): admindburl = mlist.GetScriptURL('admindb', absolute=1) form = Form(admindburl) # Add the instructions template - if details: + if details == 'instructions': doc.AddItem(Header( 2, _('Detailed instructions for the administrative database'))) else: @@ -187,13 +187,14 @@ def main(): 2, _('Administrative requests for mailing list:') + ' <em>%s</em>' % mlist.real_name)) - if not details: + if details <> 'instructions': form.AddItem(Center(SubmitButton('submit', _('Submit All Data')))) - form.AddItem(Center( - CheckBox('discardalldefersp', 0).Format() + - ' ' + - _('Discard all messages marked <em>Defer</em>') - )) + if not (sender or msgid): + form.AddItem(Center( + CheckBox('discardalldefersp', 0).Format() + + ' ' + + _('Discard all messages marked <em>Defer</em>') + )) # Add a link back to the overview, if we're not viewing the overview! adminurl = mlist.GetScriptURL('admin', absolute=1) d = {'listname' : mlist.real_name, @@ -236,11 +237,12 @@ def main(): if addform: doc.AddItem(form) form.AddItem('<hr>') - form.AddItem(Center( - CheckBox('discardalldefersp', 0).Format() + - ' ' + - _('Discard all messages marked <em>Defer</em>') - )) + if not (sender or msgid): + form.AddItem(Center( + CheckBox('discardalldefersp', 0).Format() + + ' ' + + _('Discard all messages marked <em>Defer</em>') + )) form.AddItem(Center(SubmitButton('submit', _('Submit All Data')))) doc.AddItem(mlist.GetMailmanFooter()) print doc.Format() |