| Server IP : 46.245.81.90 / Your IP : 216.73.216.85 Web Server : Apache System : Linux server3ir.xdlhost.com 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64 User : gmparts ( 1037) PHP Version : 8.1.34 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /usr/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'