%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/mailman/bin/
Upload File :
Create Path :
Current File : //lib/mailman/bin/fix_url.pyo

�
��ac@s|dZddlZddlZddlZddlmZddlmZdd�Zd�Z	e
dkrxed	�ndS(
s�Reset a list's web_page_url attribute to the default setting.

This script is intended to be run as a bin/withlist script, i.e.

% bin/withlist -l -r fix_url listname [options]

Options:
    -u urlhost
    --urlhost=urlhost
        Look up urlhost in the virtual host table and set the web_page_url and
        host_name attributes of the list to the values found.  This
        essentially moves the list from one virtual domain to another.

        Without this option, the default web_page_url and host_name values are
        used.

    -v / --verbose
        Print what the script is doing.

If run standalone, it prints this help text and exits.
i����N(tmm_cfg(tC_tcCs6ttjdd��GH|r%|GHntj|�dS(Nt%s%%(Rt__doc__treplacetsystexit(tcodetmsg((sY/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/bin/fix_url.pytusage2sc
Gspy%tj|dddg�\}}Wn#tjk
rJ}td|�nXd}d}}x>|D]6\}}|dkr�|}qb|dkrbd}qbqbW|j�s�|r�td
�GHn|j�n|r�tj|}	tj	j
|j�|�}ntjtj}	tj
}|r'td�GHn|	|_|rDtd�GHn||_td
�GH|j�|j�dS(Nsu:vsurlhost=tverboseiis-us	--urlhosts-vs	--verbosesLocking lists)Setting web_page_url to: %(web_page_url)ss"Setting host_name to: %(mailhost)ssSaving list(s-us	--urlhost(s-vs	--verbose(tgetoptterrorR
tNonetLockedRtLockRtDEFAULT_URL_PATTERNt
VIRTUAL_HOSTStgettlowertDEFAULT_URL_HOSTtDEFAULT_EMAIL_HOSTtweb_page_urlt	host_nametSavetUnlock(
tmlisttargstoptsR	RturlhosttmailhosttopttargR((sY/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/bin/fix_url.pytfix_url:s:%
	


			
t__main__i(RRRtpathstMailmanRtMailman.i18nRR
R"t__name__(((sY/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/bin/fix_url.pyt<module>'s	&

Zerion Mini Shell 1.0