ok
Direktori : /lib/python3.6/site-packages/zope/component/__pycache__/ |
Current File : //lib/python3.6/site-packages/zope/component/__pycache__/factory.cpython-36.pyc |
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'