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__/factory.cpython-310.pyc
o

,�W��@sPdZddlmZddlmZddlmZddlmZee�Gdd�de��Z	dS)	zFactory object
�)�implementer)�
implementedBy)�
Implements)�IFactoryc@s2eZdZdZddd�Zdd�Zdd	�Zd
d�ZdS)
�Factoryz�Generic factory implementation.

    The purpose of this implementation is to provide a quick way of creating
    factories for classes, functions and other objects.
    �NcCs||_||_||_||_dS�N)�	_callable�title�description�_interfaces)�self�callabler
r�
interfaces�r�8/usr/lib/python3/dist-packages/zope/component/factory.py�__init__s
zFactory.__init__cOs|j|i|��Sr)r	)r
�args�kwrrr�__call__$szFactory.__call__cCs2|jdurt|j�}t|jdd�|_|St|j�S)N�__name__z
[callable])rr�getattrr	rr)r
�specrrr�
getInterfaces's



zFactory.getInterfacescCsd|jjt|j�fS)Nz<%s for %s>)�	__class__r�reprr	)r
rrr�__repr__.szFactory.__repr__)rrN)r�
__module__�__qualname__�__doc__rrrrrrrrrs
rN)
r�zope.interfacerr�zope.interface.declarationsr�zope.component.interfacesr�objectrrrrr�<module>s