/usr/lib/python3.6/site-packages/zope/component/__pycache__
NameSizeModeActions
event.cpython-36.opt-1.pyc7960644editdlrm
event.cpython-36.pyc7960644editdlrm
eventtesting.cpython-36.opt-1.pyc15830644editdlrm
eventtesting.cpython-36.pyc15830644editdlrm
factory.cpython-36.opt-1.pyc14710644editdlrm
factory.cpython-36.pyc14710644editdlrm
globalregistry.cpython-36.opt-1.pyc28510644editdlrm
globalregistry.cpython-36.pyc28510644editdlrm
hookable.cpython-36.opt-1.pyc12500644editdlrm
hookable.cpython-36.pyc12500644editdlrm
hooks.cpython-36.opt-1.pyc32640644editdlrm
hooks.cpython-36.pyc32640644editdlrm
interface.cpython-36.opt-1.pyc36800644editdlrm
interface.cpython-36.pyc37630644editdlrm
interfaces.cpython-36.opt-1.pyc189590644editdlrm
interfaces.cpython-36.pyc189590644editdlrm
persistentregistry.cpython-36.opt-1.pyc20460644editdlrm
persistentregistry.cpython-36.pyc20460644editdlrm
registry.cpython-36.opt-1.pyc15460644editdlrm
registry.cpython-36.pyc15460644editdlrm
security.cpython-36.opt-1.pyc25520644editdlrm
security.cpython-36.pyc25520644editdlrm
standalonetests.cpython-36.opt-1.pyc16720644editdlrm
standalonetests.cpython-36.pyc17380644editdlrm
testing.cpython-36.opt-1.pyc11510644editdlrm
testing.cpython-36.pyc11510644editdlrm
testlayer.cpython-36.opt-1.pyc47380644editdlrm
testlayer.cpython-36.pyc47380644editdlrm
zcml.cpython-36.opt-1.pyc141610644editdlrm
zcml.cpython-36.pyc141610644editdlrm
_api.cpython-36.opt-1.pyc57940644editdlrm
_api.cpython-36.pyc57940644editdlrm
_compat.cpython-36.opt-1.pyc3370644editdlrm
_compat.cpython-36.pyc3370644editdlrm
_declaration.cpython-36.opt-1.pyc18010644editdlrm
_declaration.cpython-36.pyc18010644editdlrm
__init__.cpython-36.opt-1.pyc17860644editdlrm
__init__.cpython-36.pyc17860644editdlrm
Edit: /usr/lib/python3.6/site-packages/zope/component/__pycache__/interface.cpython-36.pyc (3763B)
3 ,W@sdZddlmZddlmZddlmZddlmZddl m Z ddl m Z dd d Z d d ZdddZdddZdddZd ddZddZddZddZdS)!zInterface utility functions ) alsoProvides) IInterface)getGlobalSiteManager)ComponentLookupError) queryUtility) CLASS_TYPESNcCs||sd|j|jf}tj|s6t|ts2t|ddS|dk r^|jtsRt|dt||nt}t }|j ||||dS)z@ Mark 'interface' as a named utilty providing 'iface_type'. z%s.%szis not an interface or classNzis not an interface type) __module____name__r providedBy isinstancer TypeErrorZextendsrrZregisterUtility)id interfaceZ iface_typeinfogsmr/usr/lib/python3.6/interface.pyprovideInterfaces      rcCst|d}|dkrt||S)z3Return interface or raise ComponentLookupError N)queryInterfacer)contextrifacerrr getInterface.s rcCs tt||S)z$Return an interface or ``None`` )rr)rdefaultrrrr7srcCsddt|||DS)zInterfaces search cSsg|] }|dqS)r).0 iface_utilrrr @sz#searchInterface..)searchInterfaceUtilities)r search_stringbaserrrsearchInterface=sr!cCsddt|||DS)zInterfaces search cSsg|] }|dqS)rr)rrrrrrGsz&searchInterfaceIds..)r)rrr rrrsearchInterfaceIdsDsr"csXt}|jt}r.jfdd|D}rFfdd|D}ndd|D}|S)Ncs&g|]}t|djdkr|qS)rr)getInterfaceAllDocsfind)rr)rrrrQs z,searchInterfaceUtilities..csg|]}|djr|qS)r)Z isOrExtends)rr)r rrrUscSsg|]}|qSrr)rrrrrrXs)rZgetUtilitiesForrlower)rrr rZiface_utilitiesresr)r rrrKs rcCsjd|j|jf}t|jt|jjg}tj|r`x*t|D]}|jt|j |jjq>Wdj |S)Nz%s.%s ) r r strr%__doc__rr sortedappendZgetDescriptionForjoin)rZiface_idZdocsnamerrrr#\s  r#cCs|dkr dSt||}|S)NNone)r)rrrrrrnameToInterfaceis r/cs^dkr dSt|d}fdd|D}|s>jdjSt|dksVtd||dS) Nr.)r cs$g|]}|krd|j|jfqS)z%s.%s)r r )rr)rrrrusz#interfaceToName...rzAmbiguous interface names: %sr)r!r r lenAssertionError)rritemsZidsr)rrinterfaceToNameos  r4)Nr)N)NN)NN)NN)r)Zzope.interfacerZzope.interface.interfacesrZzope.component.globalregistryrZzope.component.interfacesrZzope.component._apirZzope.component._compatrrrrr!r"rr#r/r4rrrrs