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/hooks.pyc
�
6j/Qc@sMdZdZddlZddlZyddlmZWnek
rTd�ZnXddlmZddl	m
Z
ddl	mZd	efd
��YZ
dejfd��YZe�Zdd
�Zd�Zejd��Zdd�Zddd�Zd�Zd�ZeZyddlmZWnek
r>nXee�dS(sEHooks for getting and setting a site in the thread global namespace.
trestructuredtexti����N(tremoveSecurityProxycCs|S(N((tx((s8/usr/lib/python2.7/site-packages/zope/component/hooks.pyRs(tgetGlobalSiteManager(tComponentLookupError(tIComponentLookupt
read_propertycBs eZdZd�Zd�ZRS(s�Descriptor for property-like computed attributes.

    Unlike the standard 'property', this descriptor allows assigning a
    value to the instance, shadowing the property getter function.
    cCs
||_dS(N(tfunc(tselfR((s8/usr/lib/python2.7/site-packages/zope/component/hooks.pyt__init__&scCs|dkr|S|j|�S(N(tNoneR(Rtinsttcls((s8/usr/lib/python2.7/site-packages/zope/component/hooks.pyt__get__)s(t__name__t
__module__t__doc__R	R
(((s8/usr/lib/python2.7/site-packages/zope/component/hooks.pyR s	tSiteInfocBs&eZdZe�Zed��ZRS(cCs|jjj}||_|S(N(tsmtadapterstadapter_hook(RR((s8/usr/lib/python2.7/site-packages/zope/component/hooks.pyR3s	N(RRR
tsiteRRRR(((s8/usr/lib/python2.7/site-packages/zope/component/hooks.pyR/s	cCsd|dkrt�}nt|�}|j�}|t_|t_y
t`Wntk
r_nXdS(N(	R
RRtgetSiteManagertsiteinfoRRRtAttributeError(RR((s8/usr/lib/python2.7/site-packages/zope/component/hooks.pytsetSite;s
		

cCstjS(N(RR(((s8/usr/lib/python2.7/site-packages/zope/component/hooks.pytgetSiteRsccs.t�}t|�z	dVWdt|�XdS(N(RR(Rtold_site((s8/usr/lib/python2.7/site-packages/zope/component/hooks.pyRVs
	
	cCs5|dkrtjSt|t��}t|�}|S(s�A special hook for getting the site manager.

    Here we take the currently set site into account to find the appropriate
    site manager.
    N(R
RRRRR(tcontextR((s8/usr/lib/python2.7/site-packages/zope/component/hooks.pyR`stcCs3ytj||||�SWntk
r.|SXdS(N(RRR(t	interfacetobjecttnametdefault((s8/usr/lib/python2.7/site-packages/zope/component/hooks.pyRus
cCs4ddlm}|jjt�|jjt�dS(Ni����(t_api(tzope.componentR"RtsethookR(R"((s8/usr/lib/python2.7/site-packages/zope/component/hooks.pytsetHooks|scCs.ddlm}|jj�|jj�dS(Ni����(R"(R#R"RtresetR(R"((s8/usr/lib/python2.7/site-packages/zope/component/hooks.pyt
resetHooks�s
(t
addCleanUp(Rt
__docformat__t
contextlibt	threadingtzope.security.proxyRtImportErrortzope.component.globalregistryRtzope.component.interfacesRRRRtlocalRRR
RRtcontextmanagerRRRR%R't	clearSitetzope.testing.cleanupR((((s8/usr/lib/python2.7/site-packages/zope/component/hooks.pyt<module>s4


		
		


Spamworldpro Mini