[ mailman-Patches-886124 ] default action for the admin interface

SourceForge.net noreply at sourceforge.net
Sat May 8 11:23:33 EDT 2004


Patches item #886124, was opened at 2004-01-28 18:56
Message generated for change (Comment added) made by pabs3
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=300103&aid=886124&group_id=103

Category: list administration
Group: Mailman 2.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Pabs (pabs3)
Assigned to: Nobody/Anonymous (nobody)
Summary: default action for the admin interface

Initial Comment:
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)

----------------------------------------------------------------------

>Comment By: Pabs (pabs3)
Date: 2004-05-08 23:23

Message:
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


----------------------------------------------------------------------

Comment By: Pug Bainter (phelim_gervase)
Date: 2004-05-08 22:35

Message:
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



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=300103&aid=886124&group_id=103



More information about the Mailman-coders mailing list