On 1/25/2013 6:10 PM, Mark Sapiro wrote:
Chris Nulk wrote:
Can I create a file (properly formatted) to input into config_list
containing only the values I want to change? Or, do I have to dump the
entire file, make the changes, then reload?
You can include in the input to config_list only those things you wish
to change. Attributes not defined in the config_list input will be
unchanged.
Next, I see the change_pw allows me to change a list's password. Is
that the owner's password, the moderator's password, or both? If it is
only the owners password, is there a way to change the moderator's
password through some other mechanism/program?
It's only the list owner/admin password. You can use config_list to
change either the admin or moderator password or both.
This three-line input to config_list
from Mailman.Utils import sha_new
password = sha_new('abc').hexdigest()
mod_password = sha_new('def').hexdigest()
will set the admin password to abc and the moderator poassword to def.
When run, it will give this output
Non-standard property restored: password
Non-standard property restored: mod_password
attribute "sha_new" ignored
That is expected. If you don't want to set both passwords, just omit
the corresponding line from the input file.
The lines must be exactly as shown except for the actual passwords.
You can add additional settings in the same input file.
Thanks for the information, Mark. While I was waiting for a response
from the list, I searched the archives for the discussion about
setting/unsetting the moderation bit on list members. I remember there
was a discussion and a script to it. I found the discussion (and
script) but also saw your website with Mailman scripts. After reviewing
the scripts on your site, would it be better to use the various scripts
to make changes.
For example, should I use:
1. non_members script to make entry changes to the *_these_nonmembers,
2. change_admins.py to change the owner/moderator of a list,
3. change_pw to change the list owner/moderator password,
4. and set_mod.py to change the moderation bit for list members.
I know I will have to do some coding to add the ability to change the
moderator password to the change_pw program. I figured I would add a
-m/--mod_password option and duplicate the -p option with appropriate
corrections.
It seems to make a little more sense to use scripts/programs that are
more targeted to specific changes I want to make to a list and I can
document what I am doing a little easier.
Thanks for the information and any advice,
Chris
------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe:
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org