context may be security proxied, what leads to an AttributeError when trying to open with external editor from ZMI; can be avoided by explicitly removing the security proxy

git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@4016 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2010-09-26 08:46:56 +00:00
parent b3ecfd24e6
commit 2509091c4e

View file

@ -74,6 +74,7 @@ def logAccess(event, baseDir=None):
data = event.request.annotations.get(request_key)
if not data:
return
context = removeSecurityProxy(context)
options = IOptions(context.getLoopsRoot())
logfileOption = options(logfile_option)
if not logfileOption: