summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Richter <stephan.richter@gmail.com>2013-03-10 20:56:01 -0400
committerStephan Richter <stephan.richter@gmail.com>2013-03-10 20:56:01 -0400
commit8965042862f5eda3e5cfeda2671c772a46fb7bc9 (patch)
tree790acc3b06a45ec8916d6ff700d7e5d251eac7b6
parent676ee74eb2753fe016cf4f5ece937719414ffff9 (diff)
downloadzope-security-8965042862f5eda3e5cfeda2671c772a46fb7bc9.tar.gz
Make sure we use the API to create a new proxy. The tests depend on that
expectation.
-rw-r--r--src/zope/security/proxy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zope/security/proxy.py b/src/zope/security/proxy.py
index fe300bd..0c228af 100644
--- a/src/zope/security/proxy.py
+++ b/src/zope/security/proxy.py
@@ -27,7 +27,7 @@ def _check_name(meth):
wrapped = super(PyProxyBase, self).__getattribute__('_wrapped')
checker = super(PyProxyBase, self).__getattribute__('_checker')
checker.check_getattr(wrapped, name)
- return getattr(wrapped, name)(*args, **kw)
+ return checker.proxy(getattr(wrapped, name)(*args, **kw))
return functools.update_wrapper(_wrapper, meth)
def _check_name_inplace(meth):