404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.189.188.199: ~ $
3

,�W)�@s�dZddlmZddlmZddlmZddlmZddlmZddlm	Z	ddl
mZdd	l
mZdd
l
m
Z
ddlmZdZGd
d�de�Zdd�Zddd�Zdd�Zdd�ZdS)z5zope.security support for the configuration handlers
�)�
providedBy)�	ProxyBase)�getProxiedObject)�LocatingTrustedAdapterFactory)�LocatingUntrustedAdapterFactory)�TrustedAdapterFactory)�Checker)�
CheckerPublic)�InterfaceChecker)�Proxyzzope.Publicc@s eZdZdZdd�Zee�ZdS)�PermissionProxy�__Security_checker__cCstt|��S)N)rr)�self�r�/usr/lib/python3.6/security.py�__providedBy__"szPermissionProxy.__providedBy__N)r
)�__name__�
__module__�__qualname__�	__slots__r�propertyrrrrrsrcCsx|r|rdg}|tkrt}i}|r<x|D]}|||<q,W|rlx*|D]"}x|jdd�D]}|||<qXWqFWt|�}|S)N�__call__T)�all)�PublicPermissionr	�namesr)Z_context�
permissionZallowed_interfaceZallowed_attributesZrequire�name�i�checkerrrr�_checker&s

rNcCsH|dkr6|dks|dkr td��|tkr,t}t||�}t|�}||_|S)z�Try to get the object proxied with the `checker`, but not too soon

    We really don't want to proxy the object unless we need to.
    Nz<Required arguments: checker or both provides and permissions)�
ValueErrorrr	r
rr
)�obr�providesrrrr�proxify9s
r#cs.|tkrt}t||����fdd�}�|_|S)Ncs6�|�}y
�|_Wntk
r0t|��}YnX|S)N)r
�AttributeErrorr)�argsr!)r�original_factoryrr�factoryOs
z!protectedFactory.<locals>.factory)rr	r
r')r&r"rr'r)rr&r�protectedFactoryJs
r(cCsJ|tkrt}|s |dk	r6|tk	r6|r,t|�St|�Sn|rBt|�S|SdS)N)rr	rrr)r'rZlocateZtrustedrrr�securityAdapterFactoryYs
r))NNN)�__doc__Zzope.interfacerZ
zope.proxyrrZzope.security.adapterrrrZzope.security.checkerrr	r
Zzope.security.proxyrrrrr#r(r)rrrr�<module>s 


Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 1.74 KB 0644
__init__.cpython-36.pyc File 1.74 KB 0644
_api.cpython-36.opt-1.pyc File 5.66 KB 0644
_api.cpython-36.pyc File 5.66 KB 0644
_compat.cpython-36.opt-1.pyc File 337 B 0644
_compat.cpython-36.pyc File 337 B 0644
_declaration.cpython-36.opt-1.pyc File 1.76 KB 0644
_declaration.cpython-36.pyc File 1.76 KB 0644
event.cpython-36.opt-1.pyc File 796 B 0644
event.cpython-36.pyc File 796 B 0644
eventtesting.cpython-36.opt-1.pyc File 1.55 KB 0644
eventtesting.cpython-36.pyc File 1.55 KB 0644
factory.cpython-36.opt-1.pyc File 1.44 KB 0644
factory.cpython-36.pyc File 1.44 KB 0644
globalregistry.cpython-36.opt-1.pyc File 2.78 KB 0644
globalregistry.cpython-36.pyc File 2.78 KB 0644
hookable.cpython-36.opt-1.pyc File 1.22 KB 0644
hookable.cpython-36.pyc File 1.22 KB 0644
hooks.cpython-36.opt-1.pyc File 3.19 KB 0644
hooks.cpython-36.pyc File 3.19 KB 0644
interface.cpython-36.opt-1.pyc File 3.59 KB 0644
interface.cpython-36.pyc File 3.67 KB 0644
interfaces.cpython-36.opt-1.pyc File 18.51 KB 0644
interfaces.cpython-36.pyc File 18.51 KB 0644
persistentregistry.cpython-36.opt-1.pyc File 2 KB 0644
persistentregistry.cpython-36.pyc File 2 KB 0644
registry.cpython-36.opt-1.pyc File 1.51 KB 0644
registry.cpython-36.pyc File 1.51 KB 0644
security.cpython-36.opt-1.pyc File 2.49 KB 0644
security.cpython-36.pyc File 2.49 KB 0644
standalonetests.cpython-36.opt-1.pyc File 1.63 KB 0644
standalonetests.cpython-36.pyc File 1.7 KB 0644
testing.cpython-36.opt-1.pyc File 1.12 KB 0644
testing.cpython-36.pyc File 1.12 KB 0644
testlayer.cpython-36.opt-1.pyc File 4.63 KB 0644
testlayer.cpython-36.pyc File 4.63 KB 0644
zcml.cpython-36.opt-1.pyc File 13.83 KB 0644
zcml.cpython-36.pyc File 13.83 KB 0644