"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Mailman/Cgi/admindb.py" between
mailman-2.1.35.tgz and mailman-2.1.36.tgz

About: Mailman 2 - The GNU Mailing List Management System.

admindb.py  (mailman-2.1.35.tgz):admindb.py  (mailman-2.1.36.tgz)
skipping to change at line 62 skipping to change at line 62
EXCERPT_HEIGHT = 10 EXCERPT_HEIGHT = 10
EXCERPT_WIDTH = 76 EXCERPT_WIDTH = 76
SSENDER = mm_cfg.SSENDER SSENDER = mm_cfg.SSENDER
SSENDERTIME = mm_cfg.SSENDERTIME SSENDERTIME = mm_cfg.SSENDERTIME
STIME = mm_cfg.STIME STIME = mm_cfg.STIME
if mm_cfg.DISPLAY_HELD_SUMMARY_SORT_BUTTONS in (SSENDERTIME, STIME): if mm_cfg.DISPLAY_HELD_SUMMARY_SORT_BUTTONS in (SSENDERTIME, STIME):
ssort = mm_cfg.DISPLAY_HELD_SUMMARY_SORT_BUTTONS ssort = mm_cfg.DISPLAY_HELD_SUMMARY_SORT_BUTTONS
else: else:
ssort = SSENDER ssort = SSENDER
AUTH_CONTEXTS = (mm_cfg.AuthListAdmin, mm_cfg.AuthSiteAdmin, AUTH_CONTEXTS = ((mm_cfg.AuthListModerator,))
mm_cfg.AuthListModerator)
def helds_by_skey(mlist, ssort=SSENDER): def helds_by_skey(mlist, ssort=SSENDER):
heldmsgs = mlist.GetHeldMessageIds() heldmsgs = mlist.GetHeldMessageIds()
byskey = {} byskey = {}
for id in heldmsgs: for id in heldmsgs:
ptime = mlist.GetRecord(id)[0] ptime = mlist.GetRecord(id)[0]
sender = mlist.GetRecord(id)[1] sender = mlist.GetRecord(id)[1]
if ssort in (SSENDER, SSENDERTIME): if ssort in (SSENDER, SSENDERTIME):
skey = (0, sender) skey = (0, sender)
else: else:
skey = (ptime, sender) skey = (ptime, sender)
 End of changes. 1 change blocks. 
2 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)