Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ 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 : |
o ,�W� � @ s� d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z ddlmZ dd d�Z dd � Zddd�Zddd�Zddd�Zddd�Zdd� Zdd� Zdd� ZdS )zInterface utility functions � )�alsoProvides)� IInterface)�getGlobalSiteManager)�ComponentLookupError)�queryUtility)�CLASS_TYPESN� c C s| | s d|j |jf } t�|�st|t�st| d��dS |dur/|�t�s)t|d��t||� nt}t � }|� ||| |� dS )z@ Mark 'interface' as a named utilty providing 'iface_type'. �%s.%szis not an interface or classNzis not an interface type)� __module__�__name__r � providedBy� isinstancer � TypeError�extendsr r �registerUtility)�id� interface� iface_type�info�gsm� r �:/usr/lib/python3/dist-packages/zope/component/interface.py�provideInterface s r c C s t |d�}|du r t|��|S )z3Return interface or raise ComponentLookupError N)�queryInterfacer ��contextr �ifacer r r �getInterface. s r c C s t t| |�S )z$Return an interface or ``None`` )r r )r �defaultr r r r 7 s r c C � dd� t | ||�D �S )�Interfaces search c S � g | ]}|d �qS �� r ��.0� iface_utilr r r � <listcomp>@ � z#searchInterface.<locals>.<listcomp>��searchInterfaceUtilities�r � search_string�baser r r �searchInterface= � �r. c C r )r c S r! )r r r$ r r r r'