[Mailman-Users] withlist changepw.py help
Ajay Sharma
ssharma at odc.net
Sun Dec 1 07:24:22 CET 2002
Hello,
I'm not a python programmer, but I can get around. Anyway, I started to
play with the "/bin/withlist" program to get a command-line method to
change passwords. My changepw.py program looks like:
import string
def changepw(mlist, addr, newpasswd):
addr = string.lower(addr)
if mlist.passwords.has_key(addr):
mlist.passwords[string.lower(addr)] = newpasswd
mlist.Save()
else:
print 'No address matched:', addr
and when I run it:
[mailman at server bin]$ ./withlist -l -r changepw list addr newpass
Loading list: list (locked)
Importing changepw ...
Running changepw.changepw() ...
Unlocking (but not saving) list: list
Finalizing
So why doesn't it save the changes to the list after the password is
changed??
Thanks,
ajay
--------------------------------------------------------------------
Satyajot (Ajay) Sharma
ssharma at odc.net
--------------------------------------------------------------------
More information about the Mailman-Users
mailing list