AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/zope/component/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/zope/component/__pycache__/_api.cpython-310.pyc
o

,�WN#�@s�dZddlZddlZddlmZddlmZddlmZddlmZddlm	Z	ddlm
Z
dd	lmZdd
lmZddl
mZddlmZdd
lmZddlmZzddlmZWneyiddlmZYnwdaed9dd��Zdd�Zd9dd�Zeedfdd�Zeeddfdd�Zeedfdd�Zeeddfdd�Zd9dd�Zd9d d!�Z d"d#�Z!ed:d%d&��Z"ddl#Z$e$j%j%j&�'e"�d:d'd(�Z(d;d)d*�Z)d9d+d,�Z*d9d-d.�Z+e,�Z-d:d/d0�Z.d<d1d2�Z/d3d4�Z0d9d5d6�Z1d9d7d8�Z2dS)=zZope 3 Component Architecture
�N)�	Interface)�
implementedBy)�
providedBy)�IComponentArchitecture)�!IComponentRegistrationConvenience)�IFactory)�ComponentLookupError)�IComponentLookup)�_BLANK)�	adaptedBy)�adapter)�adapts)�hookablec
CsN|durtdurddlmatSzt|�WSty&}zt|j��d}~ww)z! See IComponentArchitecture.
    Nr)�base)r�zope.component.globalregistryr	�	TypeErrorr�args)�context�error�r�5/usr/lib/python3/dist-packages/zope/component/_api.py�getSiteManager,s

��rcCs"t|||�}|durt||��|S�N)�queryAdapterInContextr)�object�	interfacerrrrr�getAdapterInContext?s
rcCsvt|dd�}|dur*z||�}Wnty#t��djdur!�Ynw|dur*|S|�|�r1|St|��||d|�S)N�__conform__��)�getattrr�sys�exc_info�tb_nextrr�queryAdapter)rrr�default�conformrrrrrEs��
rcCs(t|||d|�}|durt|||��|Sr)r$r)rr�namerrrrr�
getAdapter`�r(cCs*|durt||||�St|��||||�Sr)�adapter_hookrr$)rrr'r%rrrrr$fs
�r$cCs(t||||d�}|durt|||��|S�N)r)�queryMultiAdapterr)�objectsrr'rrrrr�getMultiAdaptermr)r.cCs4zt|�}Wnty|YSw|�||||�Sr)rrr,)r-rr'r%r�sitemanagerrrrr,ss�r,cC�0zt|�}WntygYSw|�||�Sr)rr�getAdapters)r-�providedrr/rrrr1}��r1cCr0r)rr�subscribers)r-rrr/rrrr4�r3r4cGstd��|d�dSr)rr4)r-rrr�handle�sr5rcCs0zt�}Wn
tyYdSw|�||||�Sr)rrr$)rrr'r%r/rrrr*�s
�r*cCs$t|||d�}|dur
|St||��r+)�queryUtilityr)rr'r�utilityrrr�
getUtility�s
r8cCst|��|||�Sr)rr6)rr'r%rrrrr6�sr6cC�t|��|�Sr)r�getUtilitiesFor�rrrrrr:��r:cCr9r)r�getAllUtilitiesRegisteredForr;rrrr=�r<r=cCsVzt|�}Wnty|YSw|j}|D]}|�||t�}|tur(|Sq|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__r6�_marker)rrr'r%�sm�basesr�utilrrr�queryNextUtility�s��rCcCs0t|||t�}|turtjj�d||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.)rCr?�zope�	component�
interfacesr)rrr'rBrrr�getNextUtility�s��rGcOs"|�dd�}tt||�|i|��S)zkInvoke the named factory and return the result.

    ``__factory_name`` is a positional-only argument.
    rN)�popr8r)�__factory_namer�kwargsrrrr�createObject�srKcCstt||���S)znReturn the interface provided by the named factory's objects

    Result might be a single interface. XXX
    )r8r�
getInterfaces)r'rrrr�getFactoryInterfaces�srMc	csv�t|�}|�t�D].\}}|��}z|�|�r||fVWq
ty8|D]}|�|�r5||fVnq'Yq
wdS)zCReturn info on all factories implementing the given interface.
    N)rr:rrL�isOrExtends�AttributeError)rr�utilsr'�factoryrF�ifacerrr�getFactoriesFor�s"�

�

����rSr)rN)rNN)r)3�__doc__r!�types�zope.interfacerrr�zope.component.interfacesrrrrr	�zope.component._compatr
�zope.component._declarationrrr
�
zope.hookabler�ImportError�zope.component.hookablerrrrr(r$r.r,r1r4r5r*�zope.interface.interfacerDr�
adapter_hooks�appendr8r6r:r=rr?rCrGrKrMrSrrrr�<module>sd
�

�
�











Anon7 - 2022
AnonSec Team