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:
parent
b3ecfd24e6
commit
2509091c4e
1 changed files with 1 additions and 0 deletions
|
@ -74,6 +74,7 @@ def logAccess(event, baseDir=None):
|
||||||
data = event.request.annotations.get(request_key)
|
data = event.request.annotations.get(request_key)
|
||||||
if not data:
|
if not data:
|
||||||
return
|
return
|
||||||
|
context = removeSecurityProxy(context)
|
||||||
options = IOptions(context.getLoopsRoot())
|
options = IOptions(context.getLoopsRoot())
|
||||||
logfileOption = options(logfile_option)
|
logfileOption = options(logfile_option)
|
||||||
if not logfileOption:
|
if not logfileOption:
|
||||||
|
|
Loading…
Add table
Reference in a new issue