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/_api.pyc
�
6j/Qc@skdZddlZddlZddlmZddlmZddlmZddlmZddlm	Z	ddlm
Z
dd	lmZdd
lmZddl
mZddlmZdd
lmZddlmZyddlmZWn!ek
rddlmZnXdaedd��Zd�Zdd�Zeedd�Zeeddd�Zeedd�Zeeddd�Zdd�Z dd�Z!d�Z"eddd��Z#ddl$Z%e%j&j&j'j(e#�ddd�Z)dddd�Z*dd�Z+dd�Z,e-�Z.ddd �Z/dd!�Z0d"�Z1dd#�Z2dd$�Z3dS(%sZope 3 Component Architecture
i����N(t	Interface(t
implementedBy(t
providedBy(tIComponentArchitecture(t!IComponentRegistrationConvenience(tIFactory(tComponentLookupError(tIComponentLookup(t_BLANK(t	adaptedBy(tadapter(tadapts(thookablecCsf|dkr/tdkr+ddlmantSyt|�SWn"tk
ra}t|j��nXdS(s! See IComponentArchitecture.
    i����(tbaseN(tNoneR
tzope.component.globalregistryRt	TypeErrorRtargs(tcontextterror((s7/usr/lib/python2.7/site-packages/zope/component/_api.pytgetSiteManager,scCs4t|||�}|dkr0t||��n|S(N(tqueryAdapterInContextRR(tobjectt	interfaceRR
((s7/usr/lib/python2.7/site-packages/zope/component/_api.pytgetAdapterInContext?scCs�t|dd�}|dk	rty||�}Wn0tk
r`tj�djdk	rq�qqqtX|dk	rt|Sn|j|�r�|St|�j||d|�S(Nt__conform__it(	tgetattrRRtsystexc_infottb_nextRRtqueryAdapter(RRRtdefaulttconformR
((s7/usr/lib/python2.7/site-packages/zope/component/_api.pyREs

cCs=t|||d|�}|dkr9t|||��n|S(N(RRR(RRtnameRR
((s7/usr/lib/python2.7/site-packages/zope/component/_api.pyt
getAdapter`scCs;|dkrt||||�St|�j||||�S(N(Rtadapter_hookRR(RRR"R R((s7/usr/lib/python2.7/site-packages/zope/component/_api.pyRfscCs=t|||d|�}|dkr9t|||��n|S(NR(tqueryMultiAdapterRR(tobjectsRR"RR
((s7/usr/lib/python2.7/site-packages/zope/component/_api.pytgetMultiAdaptermscCs;yt|�}Wntk
r$|SX|j||||�S(N(RRR%(R&RR"R Rtsitemanager((s7/usr/lib/python2.7/site-packages/zope/component/_api.pyR%ss

cCs5yt|�}Wntk
r$gSX|j||�S(N(RRtgetAdapters(R&tprovidedRR(((s7/usr/lib/python2.7/site-packages/zope/component/_api.pyR)}s

cCs5yt|�}Wntk
r$gSX|j||�S(N(RRtsubscribers(R&RRR(((s7/usr/lib/python2.7/site-packages/zope/component/_api.pyR+�s

cGstd�j|d�dS(N(RRR+(R&((s7/usr/lib/python2.7/site-packages/zope/component/_api.pythandle�sRcCs8y
t�}Wntk
r!dSX|j||||�S(N(RRRR(RRR"R R(((s7/usr/lib/python2.7/site-packages/zope/component/_api.pyR$�s


cCs8t||d|�}|dk	r%|St||��dS(NR(tqueryUtilityRR(RR"Rtutility((s7/usr/lib/python2.7/site-packages/zope/component/_api.pyt
getUtility�scCst|�j|||�S(N(RR-(RR"R R((s7/usr/lib/python2.7/site-packages/zope/component/_api.pyR-�scCst|�j|�S(N(RtgetUtilitiesFor(RR((s7/usr/lib/python2.7/site-packages/zope/component/_api.pyR0�scCst|�j|�S(N(RtgetAllUtilitiesRegisteredFor(RR((s7/usr/lib/python2.7/site-packages/zope/component/_api.pyR1�scCshyt|�}Wntk
r$|SX|j}x3|D]+}|j||t�}|tk	r5|Sq5W|S(s�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.
    (RRt	__bases__R-t_marker(RRR"R tsmtbasesR
tutil((s7/usr/lib/python2.7/site-packages/zope/component/_api.pytqueryNextUtility�s
	
cCsGt|||t�}|tkrCtjjjd||f��n|S(sfGet the next available utility.

    If no utility was found, a `ComponentLookupError` is raised.
    s/No more utilities for %s, '%s' have been found.(R7R3tzopet	componentt
interfacesR(RRR"R6((s7/usr/lib/python2.7/site-packages/zope/component/_api.pytgetNextUtility�scOs+|jdd�}tt||�||�S(skInvoke the named factory and return the result.

    ``__factory_name`` is a positional-only argument.
    RN(tpopRR/R(t__factory_nameRtkwargsR((s7/usr/lib/python2.7/site-packages/zope/component/_api.pytcreateObject�scCstt||�j�S(snReturn the interface provided by the named factory's objects

    Result might be a single interface. XXX
    (R/Rt
getInterfaces(R"R((s7/usr/lib/python2.7/site-packages/zope/component/_api.pytgetFactoryInterfaces�sccs�t|�}x�|jt�D]|\}}|j�}y!|j|�rT||fVnWqtk
r�x0|D]$}|j|�rl||fVPqlqlWqXqWdS(sCReturn info on all factories implementing the given interface.
    N(RR0RR@tisOrExtendstAttributeError(RRtutilsR"tfactoryR:tiface((s7/usr/lib/python2.7/site-packages/zope/component/_api.pytgetFactoriesFor�s

(4t__doc__Rttypestzope.interfaceRRRtzope.component.interfacesRRRRRtzope.component._compatRtzope.component._declarationR	R
Rt
zope.hookableRtImportErrortzope.component.hookableRR
RRRR#RR'R%R)R+R,R$tzope.interface.interfaceR8Rt
adapter_hookstappendR/R-R0R1RR3R7R;R?RARG(((s7/usr/lib/python2.7/site-packages/zope/component/_api.pyt<module>s\
							

Spamworldpro Mini