HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/zope/component/__pycache__/factory.cpython-38.pyc
U

,�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||�Sr)r	)r
�args�kwrrr�__call__$szFactory.__call__cCs2|jdk	r(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