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 A � @ s� d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z dd lm Z dd lmZ ddlmZ ddlm Z dd lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ G dd� de�ZG dd� de�ZG dd� de�ZG dd � d e�ZG d!d"� d"e�ZG d#d$� d$e �Z!G d%d&� d&e�Z"d'S )(z0Component and Component Architecture Interfaces � )� Attribute)� Interface)� implements)�ComponentLookupError)�Invalid)�IObjectEvent)�ObjectEvent)�IComponentLookup)� IRegistration)�IUtilityRegistration)�_IBaseAdapterRegistration)�IAdapterRegistration)� ISubscriptionAdapterRegistration)�IHandlerRegistration)�IRegistrationEvent)�RegistrationEvent)�IRegistered)� Registered)� IUnregistered)�Unregistered)�IComponentRegistry)�IComponents)�_BLANKc @ s� e Zd ZdZdd� Zd.dd�Zd/dd �Zd0d d�Zd/dd �Zd1dd�Z d.dd�Z d.dd�Zee dfdd�Zdd� Zeddfdd�Zee ddfdd�Zd.dd�Zee ddfdd�Zd.d d!�Zd.d"d#�Zd$d%� Zd&d'� Zd(d)� Zd.d*d+�Zd.d,d-�ZdS )2�IComponentArchitecturez�The Component Architecture is defined by two key components: Adapters and Utiltities. Both are managed by site managers. All other components build on top of them. c C � dS )z�Return the global site manager. This function should never fail and always return an object that provides `IGlobalSiteManager`. N� r r r �;/usr/lib/python3/dist-packages/zope/component/interfaces.py�getGlobalSiteManager3 � z+IComponentArchitecture.getGlobalSiteManagerNc C r )aH Get the nearest site manager in the given context. If `context` is `None`, return the global site manager. If the `context` is not `None`, it is expected that an adapter from the `context` to `IComponentLookup` can be found. If no adapter is found, a `ComponentLookupError` is raised. Nr )�contextr r r �getSiteManager: r z%IComponentArchitecture.getSiteManager� c C r )z�Get the utility that provides interface Returns the nearest utility to the context that implements the specified interface. If one is not found, raises ComponentLookupError. Nr )� interface�namer r r r � getUtilityG r z!IComponentArchitecture.getUtilityc C r )z�Look for the utility that provides interface Returns the nearest utility to the context that implements the specified interface. If one is not found, returns default. Nr )r"