404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@52.15.120.116: ~ $
3

,�W��@sdZdZddlZddlZyddlmZWnek
rDdd�ZYnXddlmZddl	m
Z
dd	l	mZGd
d�de�Z
Gdd
�d
ej�Ze�Zddd�Zdd�Zejdd��Zddd�Zd dd�Zdd�Zdd�ZeZyddlmZWnek
�rYn
Xee�dS)!zEHooks for getting and setting a site in the thread global namespace.
Zrestructuredtext�N)�removeSecurityProxycCs|S)N�)�xrr�/usr/lib/python3.6/hooks.pyrsr)�getGlobalSiteManager)�ComponentLookupError)�IComponentLookupc@s eZdZdZdd�Zdd�ZdS)�
read_propertyz�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)�func)�selfr
rrr�__init__&szread_property.__init__cCs|dkr|S|j|�S)N)r
)rZinst�clsrrr�__get__)szread_property.__get__N)�__name__�
__module__�__qualname__�__doc__rrrrrrr	 sr	c@s"eZdZdZe�Zedd��ZdS)�SiteInfoNcCs|jjj}||_|S)N)�smZadapters�adapter_hook)rrrrrr3s
zSiteInfo.adapter_hook)rrr�siterrr	rrrrrr/srcCsN|dkrt�}nt|�}|j�}|t_|t_yt`Wntk
rHYnXdS)N)rr�getSiteManager�siteinforrr�AttributeError)rrrrr�setSite;s
rcCstjS)N)rrrrrr�getSiteRsrccs(t�}t|�z
dVWdt|�XdS)N)rr)rZold_siterrrrVs

rcCs&|dkrtjSt|t��}t|�}|S)z�A special hook for getting the site manager.

    Here we take the currently set site into account to find the appropriate
    site manager.
    N)rrrrr)�contextrrrrr`s
r�cCs*ytj||||�Stk
r$|SXdS)N)rrr)Z	interface�object�name�defaultrrrrusrcCs(ddlm}|jjt�|jjt�dS)Nr)�_api)�zope.componentr!rZsethookr)r!rrr�setHooks|sr#cCsBddlm}|jj�|jj�yt`Wntk
r<YnXdS)Nr)r!)r"r!r�resetrrr)r!rrr�
resetHooks�s

r%)�
addCleanUp)N)N)rN)rZ
__docformat__�
contextlibZ	threadingZzope.security.proxyr�ImportErrorZzope.component.globalregistryrZzope.component.interfacesrrrr	Zlocalrrrr�contextmanagerrrrr#r%Z	clearSiteZzope.testing.cleanupr&rrrr�<module>s4







Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 1.74 KB 0644
__init__.cpython-36.pyc File 1.74 KB 0644
_api.cpython-36.opt-1.pyc File 5.66 KB 0644
_api.cpython-36.pyc File 5.66 KB 0644
_compat.cpython-36.opt-1.pyc File 337 B 0644
_compat.cpython-36.pyc File 337 B 0644
_declaration.cpython-36.opt-1.pyc File 1.76 KB 0644
_declaration.cpython-36.pyc File 1.76 KB 0644
event.cpython-36.opt-1.pyc File 796 B 0644
event.cpython-36.pyc File 796 B 0644
eventtesting.cpython-36.opt-1.pyc File 1.55 KB 0644
eventtesting.cpython-36.pyc File 1.55 KB 0644
factory.cpython-36.opt-1.pyc File 1.44 KB 0644
factory.cpython-36.pyc File 1.44 KB 0644
globalregistry.cpython-36.opt-1.pyc File 2.78 KB 0644
globalregistry.cpython-36.pyc File 2.78 KB 0644
hookable.cpython-36.opt-1.pyc File 1.22 KB 0644
hookable.cpython-36.pyc File 1.22 KB 0644
hooks.cpython-36.opt-1.pyc File 3.19 KB 0644
hooks.cpython-36.pyc File 3.19 KB 0644
interface.cpython-36.opt-1.pyc File 3.59 KB 0644
interface.cpython-36.pyc File 3.67 KB 0644
interfaces.cpython-36.opt-1.pyc File 18.51 KB 0644
interfaces.cpython-36.pyc File 18.51 KB 0644
persistentregistry.cpython-36.opt-1.pyc File 2 KB 0644
persistentregistry.cpython-36.pyc File 2 KB 0644
registry.cpython-36.opt-1.pyc File 1.51 KB 0644
registry.cpython-36.pyc File 1.51 KB 0644
security.cpython-36.opt-1.pyc File 2.49 KB 0644
security.cpython-36.pyc File 2.49 KB 0644
standalonetests.cpython-36.opt-1.pyc File 1.63 KB 0644
standalonetests.cpython-36.pyc File 1.7 KB 0644
testing.cpython-36.opt-1.pyc File 1.12 KB 0644
testing.cpython-36.pyc File 1.12 KB 0644
testlayer.cpython-36.opt-1.pyc File 4.63 KB 0644
testlayer.cpython-36.pyc File 4.63 KB 0644
zcml.cpython-36.opt-1.pyc File 13.83 KB 0644
zcml.cpython-36.pyc File 13.83 KB 0644