diff options
author | Stephan Richter <stephan.richter@gmail.com> | 2013-03-10 20:56:01 -0400 |
---|---|---|
committer | Stephan Richter <stephan.richter@gmail.com> | 2013-03-10 20:56:01 -0400 |
commit | 8965042862f5eda3e5cfeda2671c772a46fb7bc9 (patch) | |
tree | 790acc3b06a45ec8916d6ff700d7e5d251eac7b6 | |
parent | 676ee74eb2753fe016cf4f5ece937719414ffff9 (diff) | |
download | zope-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.py | 2 |
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): |