HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/zope/component/__pycache__/factory.cpython-39.pyc
a

,�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
rZ
interfaces�r�8/usr/lib/python3/dist-packages/zope/component/factory.py�__init__szFactory.__init__cOs|j|i|��Sr)r	)r
�args�kwrrr�__call__$szFactory.__call__cCs2|jdur(t|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)
rZzope.interfacerrZzope.interface.declarationsrZzope.component.interfacesr�objectrrrrr�<module>s