Use canonical form of aq_acquire (function instead of method)

parent bc433579
......@@ -293,7 +293,7 @@ class ZopeSecurityPolicy:
raise Unauthorized(name, value)
else:
# Try to acquire roles
try: roles = container.aq_acquire('__roles__')
try: roles = aq_acquire(container, '__roles__')
except AttributeError:
if containerbase is not accessedbase:
if self._verbose:
......
......@@ -95,7 +95,7 @@ _policy_names = {
# start with the default, mostly because we need something for the tests
setImplementation("C")
setImplementation("PYTHON")
# allow the implementation to change from the default
_implementation_set = 0
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