%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/mailman/Mailman/Cgi/
Upload File :
Create Path :
Current File : //lib/mailman/Mailman/Cgi/rmlist.pyo

�
��ac@s�dZddlZddlZddlZddlZddlZddlmZddlmZddlm	Z	ddlm
Z
ddlmZddlTdd	l
mZejZejej�d
�Zd�Zdd�ZdS(
s,Remove/delete mailing lists through the web.i����N(tmm_cfg(tUtils(tMailList(tErrors(ti18n(t*(tsyslogc
Cs�t�}|jtj�tj�}tj�}|s�td�}|j	|�|j
tdtt
|dddd����|j
d�|j
t��|j�GHtdd	|�dS|d
j�}ytj|dd
�}Wn�tjk
r�}tj|�}td�}|j	|�|j
tdtt
|dddd����|j
d�|j
t��d
GH|j�GHtdd||�dSXtj|j�|j|j�tjs5td�}|j	|�|j
tdtt
|dddd����|j
|j��|j�GHtdd|�dS|jd�rct|||�|j�GHdSt||�|j
|j��|j�GHdS(NsBad URL specificationitcolors#ff0000tsizes+2s<hr>terrorsBad URL specification: %sitlocks&No such list <em>%(safelistname)s</em>sStatus: 404 Not FoundsNo such list "%s": %s
s!You're being a sneaky list owner!tmischiefs%Attempt to sneakily delete a list: %stdoit(tDocumenttset_languageRtDEFAULT_SERVER_LANGUAGEtcgitFieldStorageRt
GetPathPiecest_tSetTitletAddItemtHeadertBoldtFontAttrtMailmanLogotFormatRtlowerRRtMMListErrortwebsafeRtpreferred_languaget!OWNERS_CAN_DELETE_THEIR_OWN_LISTStGetMailmanFooterthas_keytprocess_requesttrequest_deletion(tdoctcgidatatpartsttitletlistnametmlisttetsafelistname((s`/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Cgi/rmlist.pytmain's`	
(

"
	
(
cCs~|jdd�j�}yt|jdd��}Wntk
rMd}nX|jtjtjtjf|�tj	kr�t
||td��dStjr�dtj}t
|�tj|j|dd	�nd
g}|r�|jddd
dg�nd}|j�}x|D]}	tjjtj|	|�}
tjj|
�r�ytj|
�Wq&tk
r�}|jtjtjfkr��n|d	7}tdd|
�q&Xqtjj|
�rytj |
�Wq&tk
r"}|jtjtjfkr�n|d	7}tdd|
�q&XqqWtd�}|j!|�t"dddd�}
|
j#t$t%t&|dd���g�|
j'|
j(�ddtj)�|s�|
j#td�g�n(t*j+|j,�}|
j#td�g�|j-|
�|j-d�|j-td�t.t*j/d�td��j0��|j-td�t.t*j/d �td!��j0��|j-t1��dS("Ntpasswordttdelarchivest0is2You are not authorized to delete this mailing listsMailman.MTA.Rislists/%ssarchives/private/%ssarchives/private/%s.mboxsarchives/public/%ssarchives/public/%s.mboxR	s.link %s not deleted due to permission problemss3directory %s not deleted due to permission problemssMailing list deletion resultstbordertwidths100%Rs+1tbgcolorsGYou have successfully deleted the mailing list
    <b>%(listname)s</b>.s�There were some problems deleting the mailing list
        <b>%(listname)s</b>.  Contact your site administrator at %(sitelist)s
        for details.s<hr>sReturn to the tlistinfosgeneral list overviews<br>Return to the tadminsadministrative list overview(2tgetvaluetstriptintt
ValueErrortAuthenticateRtAuthCreatort
AuthListAdmint
AuthSiteAdmintUnAuthorizedR#RtMTAt
__import__tsystmodulestremovetextendt
internal_nametostpathtjoint
VAR_PREFIXtislinktunlinktOSErrorterrnotEACCEStEPERMRtisdirtshutiltrmtreeRtTabletAddRowtCenterRRtAddCellInfotGetCurrentRowIndextWEB_HEADER_COLORRtget_site_emailt	host_nameRtLinkt	ScriptURLRR(R$R%R)R-R/tmodnamet
REMOVABLEStproblemsR(tdirtmpltdirR*R'ttabletsitelist((s`/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Cgi/rmlist.pyR"hs�

	
	

		




(
		


c	Cs�|j}td�}|j|�tdddd�}|jttt|dd���g�|j|j	�ddt
j�|r�|jtd	tttd
�dddd
�j
�t|�j
���g�n|jtd�g�t
j}t|jd��}tdddddddd	dd�}|jttd��td�g�|j|j	�dd|�|j|j	�dd|�|jttd��tdtd�td�fdddd$�g�|j|j	�dd|�|j|j	�dd|�|jtt|jd�td���g�|j|j	�dd d!�|jttd"td#���g�|j|j	�dd d!�|j|�|j|g�|j|�dS(%Ns5Permanently remove mailing list <em>%(realname)s</em>R1iR2s100%Rs+1R3isError: Rs#ff0000s+2s.This page allows you as the list owner, to permanently
    remove this mailing list from the system.  <strong>This action is not
    undoable</strong> so you should undertake it only if you are absolutely
    sure this mailing list has served its purpose and is no longer necessary.

    <p>Note that no warning will be sent to your list members and after this
    action, any subsequent messages sent to the mailing list, or any of its
    administrative addreses will bounce.

    <p>You also have the option of removing the archives for this mailing list
    at this time.  It is almost always recommended that you do
    <strong>not</strong> remove the archives, since they serve as the
    historical record of your mailing list.

    <p>For your safety, you will be asked to reconfirm the list password.
    trmlisttcolst2tcellspacingtcellpaddingisList password:R-isAlso delete archives?R/tNotYestcheckedtvaluesR5s/<b>Cancel</b> and return to list administrationtcolspaniRsDelete this list(ii(t	real_nameRRRSRTRURRRVRWRRXRRtItalictWEB_ADMINITEM_COLORtFormtGetScriptURLtLabeltPasswordBoxtRadioButtonArrayR[tSubmitButtonR(	R$R)terrmsgtrealnameR'RbtGREYtformtftable((s`/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Cgi/rmlist.pyR#�sD	
(
! 	
	%%
(t__doc__RFRRARMRQtMailmanRRRRRtMailman.htmlformattMailman.Logging.SyslogRRRRR,R"tNoneR#(((s`/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Cgi/rmlist.pyt<module>s"
		A	T

Zerion Mini Shell 1.0