bugfix for SourceInfo adapter: use context also for __parent__ to allow security checking
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1964 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
57a5f126b5
commit
4ccf4d033c
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ class ExternalSourceInfo(object):
|
||||||
adapts(ILoopsObject)
|
adapts(ILoopsObject)
|
||||||
|
|
||||||
def __init__(self, context):
|
def __init__(self, context):
|
||||||
self.context = context
|
self.context = self.__parent__ = context
|
||||||
|
|
||||||
def getSourceInfo(self):
|
def getSourceInfo(self):
|
||||||
return getattr(self.context, sourceInfoAttrName, PersistentMapping())
|
return getattr(self.context, sourceInfoAttrName, PersistentMapping())
|
||||||
|
|
Loading…
Add table
Reference in a new issue