%PDF- %PDF-
Mini Shell

Mini Shell

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

�
��ac@s�dZddlZddlmZddlmZddlmZddlmZddlmZdZ	d	Z
d
ejfd��YZdS(s
Old style Mailman membership adaptor.

This adaptor gets and sets member information on the MailList object given to
the constructor.  It also equates member keys and lower-cased email addresses,
i.e. KEY is LCE.

This is the adaptor used by default in Mailman 2.1.
i����N(t
StringType(tmm_cfg(tUtils(tErrors(t
MemberAdaptoriitOldStyleMembershipscBs=eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zejejejejfd�Zd�Zd�Zd�Zd�Zdd�Zd�Zd�Z d�Z!d�Z"d�Z#d�Z$d�Z%RS( cCs
||_dS(N(t_OldStyleMemberships__mlist(tselftmlist((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pyt__init__/scCs |jjj�|jjj�S(N(Rtmemberstkeystdigest_members(R((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pyt
getMembers5scCs|jjj�S(N(RR
R(R((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pytgetRegularMemberKeys8scCs|jjj�S(N(RRR(R((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pytgetDigestMemberKeys;scCs�|j�}g}|jjj||�}||k	r\t|t�rO|tfS|tfSn|jjj||�}||k	r�t|t�r�|tfS|tfSndS(N(NN(
tlowerRR
tgett
isinstanceRt	ISREGULARRtISDIGESTtNone(Rtmembertlcmembertmissingtval((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pyt__get_cp_member>s



cCs)|j|�\}}|dk	r%dSdS(Nii(t#_OldStyleMemberships__get_cp_memberR(RRtcpaddrtwhere((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pytisMemberOscCs:|j|�\}}|dkr0tj|�n|j�S(N(RRRtNotAMemberErrorR(RRRR((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pytgetMemberKeyUscCs4|j|�\}}|dkr0tj|�n|S(N(RRRR(RRRR((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pytgetMemberCPAddress[scCs$g|D]}|j|�d^qS(Ni(R(RR
R((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pytgetMemberCPAddressesascCs:|jjj|j��}|dkr6tj|�n|S(N(Rt	passwordsRRRRR(RRtsecret((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pytgetMemberPassworddscCs#|j|�}||kr|SdS(Ni(R%(RRtresponseR$((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pytauthenticateMemberjscCs"|j|�stj|�ndS(N(RRR(RR((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pyt__assertIsMemberpscCsG|jjj|j�|jj�}||jj�kr=|S|jjS(N(RtlanguageRRtpreferred_languagetGetAvailableLanguages(RRtlang((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pytgetMemberLanguagets
cCsc|j|�|tjkr;|j|�\}}|tkS|jjj|j�d�}||@S(Ni(	t$_OldStyleMemberships__assertIsMemberRtDigestsRRRtuser_optionsRR(RRtflagRRtoption((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pytgetMemberOption{s

cCs&|j|�|jjj|j��S(N(R.Rt	usernamesRR(RR((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pyt
getMemberName�s
cCs)|j|�|jjj|j�g�S(N(R.Rttopics_userinterestRR(RR((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pytgetMemberTopics�s
cCs6|j|�|jjj|j�tjdf�dS(Ni(R.Rtdelivery_statusRRRtENABLED(RR((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pytgetDeliveryStatus�s
	cCs6|j|�|jjj|j�tjdf�dS(Nii(R.RR8RRRR9(RR((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pytgetDeliveryStatusChangeTime�s
	cCs2g|j�D]!}|j|�|kr
|^q
S(N(R
R:(RtstatusR((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pytgetDeliveryStatusMembers�scCs)g|jjj�D]}|j�^qS(N(Rtbounce_infoRR(RR((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pytgetBouncingMembers�scCs&|j|�|jjj|j��S(N(R.RR>RR(RR((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pyt
getBounceInfo�s
cKs�|j|�rtj|�nd}tj�}|jj}d}|jd�re|d}|d=n|jd�r�|d}|d=n|jd�r�|d}|d=n|jd�r�|d}|d=n|r�t	|j
��ntj|�|j�kr
d}n|}|j�}|r5||jj
|<n||jj|<|j||�|j||�|r~|j||�n|jjr�|jj|jj|<ndS(NitdigesttpasswordR)trealname(RRtMMAlreadyAMemberRtMakeRandomPasswordRR*Rthas_keyt
ValueErrorRtLCDomainRRR
tsetMemberPasswordtsetMemberLanguaget
setMemberNametnew_member_optionsR0(RRtkwsRARBR)RCtvalue((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pytaddNewMember�sB







	c	CsY|j|�|j�}x9d
D]1}t|j|�}|j|�r ||=q q WdS(NR#R0R
RR)R6R4R>R8(	s	passwordssuser_optionssmemberssdigest_membersslanguagestopics_userinterests	usernamessbounce_infosdelivery_status(R.RtgetattrRRF(RRt	memberkeytattrtdict((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pytremoveMember�s

ic
CsC|j|�|j�}|j|�}|jjj|d�}|j|tj�}|jj	j|t
j��}|j|�}	|jj
j|j�tjdf�}
|s�|j|�n|j|d|d|d|d|	�|r||jj|j�<n|
dtjtjfkr?|r?|
|jj
|j�<ndS(NiRCRARBR)(R.RR5RR0RR3RR/R#RRER-R8RR9RTROtBYUSERtBYADMIN(RRt
newaddresstnodeleteRQtfullnametflagstdigestspRBR,tdelivery((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pytchangeMemberAddress�s&

cCs'|j|�||jj|j�<dS(N(R.RR#R(RRQRB((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pyRIs
cCs'|j|�||jj|j�<dS(N(R.RR)R(RRQR)((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pyRJ
s
cCs�|j|�|j�}|tjkr||r�|jjsFtj�n|jjj	|�rjtj
|�n|jjj|�}|dkr�tj|�n|jj|=||jj|<|jjj	|�rx|jj|=qxn�|jjs�tj�n|jjj	|�rtj|�n|jjj|�}|dkrKtj|�n|jj|=||jj|<||jj|<dS|jjj|d�|r�|jj|c|O<n|jj|c|M<|jj|s�|jj|=ndS(Ni(R.RRR/Rt
digestableRtCantDigestErrorRRFtAlreadyReceivingDigestsR
RRRtone_last_digestt
nondigestabletMustDigestErrort!AlreadyReceivingRegularDeliveriesR0t
setdefault(RRR1RNRQtcpuser((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pytsetMemberOptions@


cCs'|j|�||jj|j�<dS(N(R.RR4R(RRRC((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pyRKLs
cCs[|j|�|j�}|r2||jj|<n%|jjj|�rW|jj|=ndS(N(R.RRR6RF(RRttopicsRQ((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pytsetMemberTopicsQs
cCs[|j|�|j�}|tjkr;|j|d�n|tj�f|jj|<dS(N(	R.RRR9t
setBounceInfoRttimeRR8(RRR<((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pytsetDeliveryStatus[s

cCs�|j|�|j�}|dkrr|jjj|�rJ|jj|=n|jjj|�r�|jj|=q�n||jj|<dS(N(R.RRRR>RFR8(RRtinfo((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pyRjhs
(&t__name__t
__module__R	R
RRRRR R!R"R%R'R.R-R3R5R7R:R;RtUNKNOWNRURVtBYBOUNCER=R?R@RORTR]RIRJRgRKRiRlRj(((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pyR.sD																					/				:		
	
(t__doc__RkttypesRtMailmanRRRRRRR(((si/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/OldStyleMemberships.pyt<module>s

Zerion Mini Shell 1.0