Commit 5d6340ba authored by Lennart Regebro's avatar Lennart Regebro

A quick and dirty fix for the macro problem, that may or may not work.

parent c5db98e7
......@@ -259,6 +259,9 @@ class Context:
context=context,
default=default,
target_language=target_language)
def getValue(self, name, default=None):
return self.vars.get(name, default)
class TALESTracebackSupplement:
"""Implementation of ITracebackSupplement"""
......
......@@ -71,7 +71,7 @@ class ZPTMacros(unittest.TestCase):
This is in the slot
</p>
</metal:block>
<tal:block condition="default">
<tal:block condition="nothing">
<div metal:define-macro="themacro">
<h1>This is the header</h1>
<p metal:define-slot="theslot">
......@@ -80,14 +80,12 @@ class ZPTMacros(unittest.TestCase):
</div>
</tal:block>
"""
self.result = """
<div>
self.result = """<div>
<h1>This is the header</h1>
<p>
This is in the slot
</p>
</div>
"""
def testMacroExpansion(self):
......
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