File: //usr/lib/python3/dist-packages/zope/component/__pycache__/factory.cpython-39.pyc
a
,�W� � @ sP d Z ddlmZ ddlmZ ddlmZ ddlmZ ee�G dd� de��Z dS ) zFactory object
� )�implementer)�
implementedBy)�
Implements)�IFactoryc @ s2 e Zd ZdZddd�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.
� Nc C s || _ || _|| _|| _d S �N)� _callable�title�description�_interfaces)�self�callabler
r Z
interfaces� r �8/usr/lib/python3/dist-packages/zope/component/factory.py�__init__ s zFactory.__init__c O s | j |i |��S r )r )r
�args�kwr r r �__call__$ s zFactory.__call__c C s2 | j d ur(t| j � }t| jdd�|_|S t| j�S )N�__name__z
[callable])r r �getattrr r r )r
�specr r r �
getInterfaces'