��
��Pc
@s�dZddkZddkZddkZddklZddklZyee fWne
j
odZdZ nXdd�Zd �Ze
d
joed�ndS(s�Reset the passwords for members of a mailing list.
This script resets all the passwords of a mailing list's members. It can also
be used to reset the lists of all members of all mailing lists, but it is your
responsibility to let the users know that their passwords have been changed.
This script is intended to be run as a bin/withlist script, i.e.
% bin/withlist -l -r reset_pw listname [options]
Options:
-v / --verbose
Print what the script is doing.
i����N(tUtils(tC_iitcCs_|o
ti}n
ti}|ttidd��IJ|o||IJnti|�dS(Nt%s%%(tsyststderrtstdoutRt__doc__treplacetexit(tcodetmsgtfd((sU/builddir/build/BUILDROOT/mailman-2.1.12-18.el6.i386//usr/lib/mailman/bin/reset_pw.pytusage4s
c Gs�y"ti|ddg�\}}Wn%tij
o}td|�nXt}x+|D]#\}}|djo
t}qWqWW|i�}|otd�GHnxF|i�D]8}ti �}|i
||�|otd�GHq�q�W|i�dS( Ntvtverboseis-vs --verboses)Changing passwords for list: %(listname)ss2New password for member %(member)40s: %(randompw)s(s-vs --verbose(tgetoptterrorR
tFalsetTruet
internal_nameRt
getMembersRtMakeRandomPasswordtsetMemberPasswordtSave( tmlisttargstoptsRRtopttlistnametmembertrandompw((sU/builddir/build/BUILDROOT/mailman-2.1.12-18.el6.i386//usr/lib/mailman/bin/reset_pw.pytreset_pw@s&"
t__main__(RRRtpathstMailmanRtMailman.i18nRRRt NameErrorR
R t__name__(((sU/builddir/build/BUILDROOT/mailman-2.1.12-18.el6.i386//usr/lib/mailman/bin/reset_pw.pyt<module>"s