From 4ccf4d033cef616e9fbe60ba8a543bd3875bae7f Mon Sep 17 00:00:00 2001 From: helmutm Date: Mon, 27 Aug 2007 17:31:46 +0000 Subject: [PATCH] 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 --- integrator/source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrator/source.py b/integrator/source.py index c816751..8be2737 100644 --- a/integrator/source.py +++ b/integrator/source.py @@ -40,7 +40,7 @@ class ExternalSourceInfo(object): adapts(ILoopsObject) def __init__(self, context): - self.context = context + self.context = self.__parent__ = context def getSourceInfo(self): return getattr(self.context, sourceInfoAttrName, PersistentMapping())