Menu

#287 default action for the admin interface

Mailman 2.1
open
nobody
5
2004-01-28
2004-01-28
Paul Wise
No

this patch changes the admindb interface such that each
subscribe/held message has an extra action that can be
taken: default. You then choose at the bottom what the
default action will be (defer, reject, discard etc)

Discussion

  • Paul Wise

    Paul Wise - 2004-03-05

    the patch, finally

     
  • Pug Bainter

    Pug Bainter - 2004-05-08

    Logged In: YES
    user_id=484284

    While a great idea for a patch, it doesn't work if you try to
    view the posts from users.

    Traceback (most recent call last):
    File "/opt/depot/mailman-2.1.4/scripts/driver", line 87, in
    run_main
    main()
    File "/opt/depot/mailman-2.1.4/Mailman/Cgi/admindb.py", line
    163, in main
    process_form(mlist, doc, cgidata)
    File "/opt/depot/mailman-2.1.4/Mailman/Cgi/admindb.py", line
    685, in process_form
    defaultaction = int(cgidata.getvalue('defaultaction'))
    TypeError: int() argument must be a string or a number

     
  • Paul Wise

    Paul Wise - 2004-05-08

    Logged In: YES
    user_id=35028

    In the latest version of the patch on lists.indymedia.org
    the line where the error occurs has been replaced by the
    following.

    # Get what action to take by default
    defaultaction = mm_cfg.DEFER
    try:
    defaultaction = cgidata.getvalue('defaultaction')
    if defaultaction != None:
    defaultaction = int(defaultaction)
    except ValueError, TypeError:
    defaultaction = mm_cfg.DEFER
    # If the user has not specified a default, be safe and
    choose defer
    if defaultaction not in (mm_cfg.DEFER, mm_cfg.APPROVE,
    mm_cfg.REJECT, mm_cfg.DISCARD):
    defaultaction = mm_cfg.DEFER

     

Log in to post a comment.

MongoDB Logo MongoDB