Commit b4581536 authored by Evan Simpson's avatar Evan Simpson

Fix call to evaluateMacro

parent 590705ba
......@@ -193,18 +193,7 @@ class TALInterpreter:
self.interpret(macro)
def do_useMacro(self, macroName, compiledSlots):
doc, localName = self.engine.findMacroDocument(macroName)
if not doc:
# Local macro
macro = self.macros[localName]
else:
# External macro
macroDict = macroIndexer(doc)
if not macroDict.has_key(localName):
print "Macro", macroName, "not found"
return
macroNode = macroDict[localName]
macro, dummy = TALCompiler(macroNode)()
macro = self.engine.evaluateMacro(macroName)
save = self.slots, self.inMacro
self.slots = compiledSlots
self.inMacro = 1
......
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