%PDF- %PDF-
Mini Shell

Mini Shell

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

�
��ac@sdZddlZddlZddlZddlZddlZddlmZddlmZddl	m
Z
dZdZdZ
d	Zd
ZdZeee
eeefZyeefWnek
r�dZd
ZnXgZddd��YZd�ZdS(s1Track pending actions which require confirmation.i����N(tmm_cfg(tUserDesc(tsha_newtStUtCtHtEtPiitPendingcBsGeZd�Zd�Zd�Zd�Zed�Zej	d�Z
RS(cCs"tjj|j�d�|_dS(Nspending.pck(tostpathtjointfullpatht_Pending__pendfile(tself((s]/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Pending.pytInitTempVars7sc
Os�|jdtj�}|j�}xctr�tj�}tj�|dtj�d}tt	|��j
�}|j|�s$Pq$q$W|f|||<|jdi�}	|||	|<|j
|�|S(sMCreate a new entry in the pending database, returning cookie for it.
        tlifetimeg�?t	evictions(tgetRtPENDING_REQUEST_LIFEt_Pending__loadtTruettimetrandomtclockRtreprt	hexdigestthas_keyt
setdefaultt_Pending__save(
RtoptcontenttkwsRtdbtnowtxtcookieR((s]/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Pending.pytpend_new:s	"
cCslyt|j�}Wn3tk
rH}|jtjkr=�niid6SXztj|�SWd|j�XdS(NR(topenRtIOErrorterrnotENOENTtcPickletloadtclose(Rtfpte((s]/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Pending.pyt__loadZsc
CsN|d}tj�}xS|j�D]E\}}|dkrAq#n||}||kr#||=||=q#q#Wx-|j�D]}|j|�sy||=qyqyWtj|d<d|jtj�|f}tj	d�}zet
|d�}	z1tj||	�|	j
�tj|	j��Wd|	j�Xtj||j�Wdtj	|�XdS(NRtversions%s.tmp.%d.%ditw(s	evictionssversion(RtitemstkeysRRtPENDING_FILE_SCHEMA_VERSIONRR
tgetpidtumaskR'R+tdumptflushtfsynctfilenoR-trename(
RR"RR#R%tdatat	timestampttmpfiletomaskR.((s]/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Pending.pyt__savees0



cCsd|j�}|s|j|�S|j|t�}|tkrAdS||=|d|=|j|�|S(s�Return data for cookie, or None if not found.

        If optional expunge is True (the default), the record is also removed
        from the database.
        RN(RRt_missingtNoneR(RR%texpungeR"R ((s]/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Pending.pytpend_confirm�s

cCs?|j�}|||<tj�||d|<|j|�dS(NR(RRR(RR%R=RR"((s]/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Pending.pytpend_repend�s
(t__name__t
__module__RR&RRRRERRRF(((s]/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Pending.pyR	6s		 		cCs�i}|jd�r|d=n|jdi�}x�|j�D]v\}}t|�}tjd|dddd|dd	|d
dtj�}t|f||<|dtj||<q>W|S(
NtlastculltimeRtaddressitfullnamettpassworditdigestitlangi����(	RRR3tstrRRtDEFAULT_SERVER_LANGUAGEtSUBSCRIPTIONR(tolddbR"RR%R=tud((s]/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Pending.pyt_update�s
	

((t__doc__R
RR)RR+tMailmanRRt
Mailman.UtilsRRRtUNSUBSCRIPTIONtCHANGE_OF_ADDRESStHELD_MESSAGEt	RE_ENABLEtPROBE_BOUNCEt_ALLKEYSRtFalset	NameErrorRBR	RU(((s]/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Pending.pyt<module>s2

l

Zerion Mini Shell 1.0