Commit 22733a5b authored by Guido van Rossum's avatar Guido van Rossum

Add beginScope/endScope around elements with repeat commands too, as

discussed in today's meeting.
parent e6fd5320
......@@ -216,9 +216,11 @@ class TALCompiler(DOMVisitor):
def compileElement(self, node):
defines = node.getAttributeNS(ZOPE_TAL_NS, "define")
if defines:
repeat = node.getAttributeNS(ZOPE_TAL_NS, "repeat")
if defines or repeat:
self.emit("beginScope")
self.emitDefines(defines)
if defines:
self.emitDefines(defines)
self.conditionalElement(node)
self.emit("endScope")
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment