o ,ò¿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 Ú interfaces©rú8/usr/lib/python3/dist-packages/zope/component/factory.pyÚ__init__s zFactory.__init__cOs|j|i|¤ŽSr)r )r ÚargsÚkwrrrÚ__call__$szFactory.__call__cCs2|jdurt|jŽ}t|jddƒ|_|St|jƒS)NÚ__name__z [callable])r rÚgetattrr rr)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) rÚzope.interfacerrÚzope.interface.declarationsrÚzope.component.interfacesrÚobjectrrrrrÚs