"""
check_depth(depth)
if self.cached:
- log.debug('invalidating %r', self.name)
+ log.debug('invalidating %s', self)
self.cached = False
for d in self.dependants:
d.invalidate(depth + 1)
def p_CONDITION(self):
self.dbg() # Debug
self.p_WS()
+ t = u"condition at %s:%d:%d"%(self.fname, self.line, self.column)
self.expect(self.c_if)
self.p_WS()
f = self.p_FORMULA()
- cnd = conf.ConfigCondition(f)
+ cnd = conf.ConfigCondition(f, text=t, parent=(self.conditions and self.conditions[-1]) or None)
self.conditions.append(cnd)
# Parse a block
self.p_WS()