summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Korostelev <nadako@gmail.com>2009-03-09 16:19:10 +0000
committerDan Korostelev <nadako@gmail.com>2009-03-09 16:19:10 +0000
commitadccf02b31f9ab3b5779d0e2465acb19a5deaeaf (patch)
treedb4423f26193f7cda271e90a8897dfd5255a888d
parentf2185764ca99164e4bf9cf4d087f385063df0a59 (diff)
downloadzope-security-adccf02b31f9ab3b5779d0e2465acb19a5deaeaf.tar.gz
import of zope.location is also only needed for monkey-patch, so move it down to the patch itself.
-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 5760edf..ee4cff3 100644
--- a/src/zope/security/proxy.py
+++ b/src/zope/security/proxy.py
@@ -17,7 +17,6 @@ $Id$
"""
__docformat__ = 'restructuredtext'
-import zope.location.location
from zope.security._proxy import getChecker, getObject
from zope.security._proxy import _Proxy as Proxy
@@ -79,6 +78,7 @@ def isinstance(object, cls):
# location proxy from here.
# This is the only sane place we found for doing it: it kicks in as soon
# as someone starts using security proxies.
+import zope.location.location
from zope.security.decorator import DecoratedSecurityCheckerDescriptor
zope.location.location.LocationProxy.__Security_checker__ = (
DecoratedSecurityCheckerDescriptor())