/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__/hooks.cpython-36.pyc (3264B)
3 ,W@sdZdZddlZddlZyddlmZWnek rDddZYnXddlmZddl m Z dd l m Z Gd d d e Z Gd d d ejZeZdddZddZejddZdddZd ddZddZddZeZyddlmZWnek rYn XeedS)!zEHooks for getting and setting a site in the thread global namespace. ZrestructuredtextN)removeSecurityProxycCs|S)N)xrr/usr/lib/python3.6/hooks.pyrsr)getGlobalSiteManager)ComponentLookupError)IComponentLookupc@s eZdZdZddZddZdS) read_propertyzDescriptor for property-like computed attributes. Unlike the standard 'property', this descriptor allows assigning a value to the instance, shadowing the property getter function. cCs ||_dS)N)func)selfr rrr__init__&szread_property.__init__cCs|dkr |S|j|S)N)r )r Zinstclsrrr__get__)szread_property.__get__N)__name__ __module__ __qualname____doc__r rrrrrr sr c@s"eZdZdZeZeddZdS)SiteInfoNcCs|jjj}||_|S)N)smZadapters adapter_hook)r rrrrr3s zSiteInfo.adapter_hook)rrrsiterrr rrrrrr/src CsN|dkrt}nt|}|j}|t_|t_yt`Wntk rHYnXdS)N)rrgetSiteManagersiteinforrrAttributeError)rrrrrsetSite;s rcCstjS)N)rrrrrrgetSiteRsrc cs(t}t|z dVWdt|XdS)N)rr)rZold_siterrrrVs  rcCs&|dkrtjSt|t}t|}|S)zA special hook for getting the site manager. Here we take the currently set site into account to find the appropriate site manager. N)rrrrr)contextrrrrr`s  rc Cs*ytj||||Stk r$|SXdS)N)rrr)Z interfaceobjectnamedefaultrrrrusrcCs(ddlm}|jjt|jjtdS)Nr)_api)zope.componentr!rZsethookr)r!rrrsetHooks|s  r#c CsBddlm}|jj|jjyt`Wntk r<YnXdS)Nr)r!)r"r!rresetrrr)r!rrr resetHookss   r%) addCleanUp)N)N)rN)rZ __docformat__ contextlibZ threadingZzope.security.proxyr ImportErrorZzope.component.globalregistryrZzope.component.interfacesrrrr Zlocalrrrrcontextmanagerrrrr#r%Z clearSiteZzope.testing.cleanupr&rrrrs4