Commit 4d6384b6 authored by Albertas Agejevas's avatar Albertas Agejevas

Make sure proxy descriptors are not shadowed by the inner's attributes.

This was needed since a change introduced in zope.proxy in 2006,
but the local copy of _zope_proxy_proxy.c was even more ancient.
parent 202808a5
......@@ -930,9 +930,11 @@ class ContainedProxy(ContainedProxyBase):
__safe_for_unpickling__ = True
__providedBy__ = DecoratorSpecificationDescriptor()
__providedBy__ = zope.proxy.non_overridable(
DecoratorSpecificationDescriptor())
__Security_checker__ = DecoratedSecurityCheckerDescriptor()
__Security_checker__ = zope.proxy.non_overridable(
DecoratedSecurityCheckerDescriptor())
ContainedProxy.__provides__ = ContainedProxyClassProvides(ContainedProxy, type)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment