ok

Mini Shell

Direktori : /lib/python3.6/site-packages/zope/component/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/zope/component/__pycache__/factory.cpython-36.pyc

3

,�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	r
Z
interfaces�r�/usr/lib/python3.6/factory.py�__init__szFactory.__init__cOs|j||�S)N)r)r�args�kwrrr�__call__$szFactory.__call__cCs2|jdk	r(t|j�}t|jdd�|_|St|j�S)N�__name__z
[callable])rr�getattrrrr)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

Zerion Mini Shell 1.0