CasperSecurity

Current Path : /lib/python3/dist-packages/zope/component/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/zope/component/__pycache__/security.cpython-310.pyc

o

,�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�9/usr/lib/python3/dist-packages/zope/component/security.py�__providedBy__"szPermissionProxy.__providedBy__N)�__name__�
__module__�__qualname__�	__slots__r�propertyrrrrrsrcCsh|s|sdg}|tkr
t}i}|r|D]}|||<q|r.|D]}|jdd�D]}|||<q&qt|�}|S)N�__call__T)�all)�PublicPermissionr	�namesr)�_context�
permission�allowed_interface�allowed_attributes�require�name�i�checkerrrr�_checker&s

�r$NcCsH|dur|dus|durtd��|tkrt}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.|tkrt}t||����fdd�}�|_|S)Ncs4�|�}z�|_W|Styt|��}Y|Swr)r
�AttributeErrorr)�argsr&�r#�original_factoryrr�factoryOs��z!protectedFactory.<locals>.factory)rr	r
r-)r,r'rr-rr+r�protectedFactoryJs
r.cCsD|tkrt}|s|dur|tur|rt|�St|�S|r t|�S|Sr)rr	rrr)r-r�locate�trustedrrr�securityAdapterFactoryYsr1)NNN)�__doc__�zope.interfacer�
zope.proxyrr�zope.security.adapterrrr�zope.security.checkerrr	r
�zope.security.proxyrrrr$r(r.r1rrrr�<module>s"


Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY