Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : fdshops ( 1003)
PHP Version : 8.2.21
Disable Function : NONE
Directory :  /lib/python2.7/site-packages/zope/component/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python2.7/site-packages/zope/component/interface.pyo
�
6j/Qc@s�dZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZddd	�Zd
�Zdd�Zddd�Zddd
�Zddd�Zd�Zd�Zd�ZdS(sInterface utility functions
i����(talsoProvides(t
IInterface(tgetGlobalSiteManager(tComponentLookupError(tqueryUtility(tCLASS_TYPEStcCs�|sd|j|jf}ntj|�sSt|t�sOt|d��ndS|dk	r�|jt�s�t|d��nt	||�nt}t
�}|j||||�dS(s@ Mark 'interface' as a named utilty providing 'iface_type'.
    s%s.%ssis not an interface or classNsis not an interface type(t
__module__t__name__Rt
providedByt
isinstanceRt	TypeErrortNonetextendsRRtregisterUtility(tidt	interfacet
iface_typetinfotgsm((s</usr/lib/python2.7/site-packages/zope/component/interface.pytprovideInterfaces	cCs.t|d�}|dkr*t|��n|S(s3Return interface or raise ComponentLookupError
    N(tqueryInterfaceRR(tcontextRtiface((s</usr/lib/python2.7/site-packages/zope/component/interface.pytgetInterface.scCstt||�S(s$Return an interface or ``None``
    (RR(Rtdefault((s</usr/lib/python2.7/site-packages/zope/component/interface.pyR7scCs'gt|||�D]}|d^qS(sInterfaces search
    i(tsearchInterfaceUtilities(Rt
search_stringtbaset
iface_util((s</usr/lib/python2.7/site-packages/zope/component/interface.pytsearchInterface=scCs'gt|||�D]}|d^qS(sInterfaces search
    i(R(RRRR((s</usr/lib/python2.7/site-packages/zope/component/interface.pytsearchInterfaceIdsDscCs�t�}|jt�}|re|j�}g|D]+}t|d�j|�dkr1|^q1}n|r�g|D]}|dj|�rr|^qr}ng|D]}|^q�}|S(Nii(RtgetUtilitiesForRtlowertgetInterfaceAllDocstfindtisOrExtends(RRRRtiface_utilitiesRtres((s</usr/lib/python2.7/site-packages/zope/component/interface.pyRKs	

"cCs�d|j|jf}t|�j�t|j�j�g}tj|�r�x<t|�D]+}|jt|j	|�j�j��qYWndj
|�S(Ns%s.%ss
(RRtstrR!t__doc__RR	tsortedtappendtgetDescriptionFortjoin(Rtiface_idtdocstname((s</usr/lib/python2.7/site-packages/zope/component/interface.pyR"\s&cCs#|dkrdSt||�}|S(NR(RR(RRR((s</usr/lib/python2.7/site-packages/zope/component/interface.pytnameToInterfaceiscCsw|dkrdSt|d|�}g|D](}||kr)d|j|jf^q)}|so|jd|jS|dS(NRRs%s.%st.i(RRRR(RRtitemsRtids((s</usr/lib/python2.7/site-packages/zope/component/interface.pytinterfaceToNameos
(N(R(tzope.interfaceRtzope.interface.interfacesRtzope.component.globalregistryRtzope.component.interfacesRtzope.component._apiRtzope.component._compatRRRRRRRRR"R0R4(((s</usr/lib/python2.7/site-packages/zope/component/interface.pyt<module>s			
	

Spamworldpro Mini