HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-10-0-8-47 6.8.0-1021-aws #23~22.04.1-Ubuntu SMP Tue Dec 10 16:31:58 UTC 2024 aarch64
User: ubuntu (1000)
PHP: 8.1.2-1ubuntu2.22
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/zope/component/__pycache__/persistentregistry.cpython-310.pyc
o

,�W6�@sfdZddlmZddlmZddlmZddlmZddl	m
Z
Gdd�dee�ZGd	d
�d
e
�ZdS)zPersistent component managers
�)�
Persistent)�PersistentMapping)�PersistentList)�VerifyingAdapterRegistry)�
Componentscs4eZdZ�fdd�Z�fdd�Z�fdd�Z�ZS)�PersistentAdapterRegistrycs"||urd|_tt|��|�dS)NT)�
_p_changed�superr�changed)�self�originally_changed��	__class__��C/usr/lib/python3/dist-packages/zope/component/persistentregistry.pyr
sz!PersistentAdapterRegistry.changedcs:tt|�����}|jD]}|�|d�q|�dd�|S)Nr�ro)r	r�__getstate__�copy�
_delegated�pop)r�state�namer
rrrs

z&PersistentAdapterRegistry.__getstate__cs:|�dd�}tt|��|�|��||_|j�|�dS)N�	__bases__r)rr	r�__setstate__�
_createLookupr�	_v_lookupr
)rr�basesr
rrr$s
z&PersistentAdapterRegistry.__setstate__)�__name__�
__module__�__qualname__r
rr�
__classcell__rrr
rrsrc@seZdZdd�Zdd�ZdS)�PersistentComponentscCst�|_t�|_dS�N)r�adapters�	utilities�rrrr�_init_registries.sz%PersistentComponents._init_registriescCs$t�|_t�|_t�|_t�|_dSr")r�_utility_registrations�_adapter_registrationsr�_subscription_registrations�_handler_registrationsr%rrr�_init_registrations2sz(PersistentComponents._init_registrationsN)rrrr&r+rrrrr!,sr!N)
�__doc__�
persistentr�persistent.mappingr�persistent.listr�zope.interface.adapterr�zope.interface.registryrrr!rrrr�<module>s