zope.security.proxyΒΆ

An introduction to proxies and their uses can be found in Untrusted Interpreters and Security Proxies.

>>> from zope.security.proxy import isinstance
>>> class C1(object):
...     pass

>>> c = C1()
>>> isinstance(c, C1)
True

>>> from zope.security.checker import ProxyFactory
>>> isinstance(ProxyFactory(c), C1)
True

>>> class C2(C1):
...     pass

>>> c = C2()
>>> isinstance(c, C1)
True

>>> from zope.security.checker import ProxyFactory
>>> isinstance(ProxyFactory(c), C1)
True