| Server IP : 93.115.150.27 / Your IP : 216.73.216.221 Web Server : LiteSpeed System : Linux host2.azar.host 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64 User : dorfakkh ( 1797) PHP Version : 8.1.34 Disable Function : show_source, system, passthru, exec, popen, proc_open, mail MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /lib/python3.6/site-packages/zope/component/__pycache__/ |
Upload File : |
3
,�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 �/usr/lib/python3.6/factory.py�__init__ s zFactory.__init__c O s | j ||�S )N)r )r �args�kwr r r �__call__$ s zFactory.__call__c C s2 | j d k r(t| j � }t| jdd�|_|S t| j�S )N�__name__z
[callable])r r �getattrr r r )r �specr r r �
getInterfaces'