Anne Ramey wrote:

>I was setting my system defaults for a new installation of mailman and 
>seem to have run across a stumbling block.  I can set the 
>generic_member_moderation to yes, but there doesn't seem to be a way in 
>mm_cfg.py to set default member_moderation_action or default 
>member_moderation_notice...or am I missing something?


You can set the default value for default_member_moderation for new
lists via

DEFAULT_DEFAULT_MEMBER_MODERATION

The default values for member_moderation_action and
member_moderation_notice are hard coded in Mailman/MailList.py to
'Hold' and empty respectively.


>I don't see any 
>defaults for those in Defaults.py and when I try
>DEFAULT_MEMBER_MODERATION_ACTION = 1
>DEFAULT_MEMBER_MODERATION_NOTICE = "You do not have permission to post 
>to this list, Please contact the list owner with any issues"
>it seems to have no effect.


You can't add any setting to mm_cfg.py that isn't in Defaults.py.
Mailman won't see it. If it did look for it and it wasn't defined in
Defaults.py, it would produce an error.


>How do I set a system default for these?


You could change Mailman/MailList.py to use
mm_cfg.DEFAULT_MEMBER_MODERATION_ACTION and
mm_cfg.DEFAULT_MEMBER_MODERATION_NOTICE instead of the current hard
coded 0 and '', and then you could put them in mm_cfg.py.

Or you could put the two lines

member_moderation_action = 1
member_moderation_notice = "You do not have permission to post to this
list, Please contact the list owner with any issues"

in a file and run bin/config_list with this file as input on the new
lists.

-- 
Mark Sapiro <[EMAIL PROTECTED]>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&amp;file=faq01.027.htp

Reply via email to