Fix nested _parent_ evalutation for issue1697

check_load was not passed to the parent EvalEnvironment instance
(transplanted from 4bf73d057f064bdbd05fcccd96ee03424fd223a3)
This commit is contained in:
Cédric Krier committed 2010-09-19 18:49:12 +02:00
1 parent 2423671767
commit e6a5a47ae1
1 file changed
+1 -1
+1 -1
View File
@@ -19,7 +19,7 @@ class EvalEnvironment(object):
def __getattr__(self, item):
if item == '_parent_' + self.parent.parent_name and self.parent.parent:
return EvalEnvironment(self.parent.parent)
return EvalEnvironment(self.parent.parent, self.check_load)
return self.parent.get_eval(check_load=self.check_load)[item]