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)
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
the patch, finally
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
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