diff options
author | Mark Sapiro <mark@msapiro.net> | 2013-07-19 14:33:57 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2013-07-19 14:33:57 -0700 |
commit | 1beb49523f59142b215d75343fd797b582db77b6 (patch) | |
tree | b722772d36df86b78ed4e95482ec788d7ac6dac1 /Mailman/Cgi | |
parent | daa26bbc43c82c1b91cfb927f5430b94d11bb068 (diff) | |
download | mailman2-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 'Mailman/Cgi')
-rw-r--r-- | Mailman/Cgi/admindb.py | 11 |
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 |