aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Cgi/admindb.py
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2013-07-19 14:33:57 -0700
committerMark Sapiro <mark@msapiro.net>2013-07-19 14:33:57 -0700
commit1beb49523f59142b215d75343fd797b582db77b6 (patch)
treeb722772d36df86b78ed4e95482ec788d7ac6dac1 /Mailman/Cgi/admindb.py
parentdaa26bbc43c82c1b91cfb927f5430b94d11bb068 (diff)
downloadmailman2-1beb49523f59142b215d75343fd797b582db77b6.tar.gz
mailman2-1beb49523f59142b215d75343fd797b582db77b6.tar.xz
mailman2-1beb49523f59142b215d75343fd797b582db77b6.zip
Enable setting a default grouping/sorting for the admindb held message
summary via a DISPLAY_HELD_SUMMARY_SORT_BUTTONS setting.
Diffstat (limited to '')
-rw-r--r--Mailman/Cgi/admindb.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/Mailman/Cgi/admindb.py b/Mailman/Cgi/admindb.py
index fd9febe8..d3350ea7 100644
--- a/Mailman/Cgi/admindb.py
+++ b/Mailman/Cgi/admindb.py
@@ -50,10 +50,13 @@ i18n.set_language(mm_cfg.DEFAULT_SERVER_LANGUAGE)
EXCERPT_HEIGHT = 10
EXCERPT_WIDTH = 76
-SSENDER = 0
-SSENDERTIME = 1
-STIME = 2
-ssort = SSENDER
+SSENDER = mm_cfg.SSENDER
+SSENDERTIME = mm_cfg.SSENDERTIME
+STIME = mm_cfg.STIME
+if mm_cfg.DISPLAY_HELD_SUMMARY_SORT_BUTTONS in (SSENDERTIME, STIME):
+ ssort = mm_cfg.DISPLAY_HELD_SUMMARY_SORT_BUTTONS
+else:
+ ssort = SSENDER