Errors on $_ sequence in odt file
Created originally on Bitbucket by Yuv
Take any working template file and enter anywhere in the text the combination $_.
Expected result: the $_ is ignored as part of the decoration text around the fields to be templated.
Actual result: Rendering will fail with
File "/usr/local/lib/python2.7/dist-packages/py3o/template/main.py", line 1080, in render
for status in self.render_flow(data):
File "/usr/local/lib/python2.7/dist-packages/py3o/template/main.py", line 1070, in render_flow
for status in self.__save_output():
File "/usr/local/lib/python2.7/dist-packages/py3o/template/main.py", line 1144, in __save_output
for chunk in nstream.serialize():
File "/usr/local/lib/python2.7/dist-packages/genshi/output.py", line 241, in __call__
for kind, data, pos in stream:
File "/usr/local/lib/python2.7/dist-packages/genshi/output.py", line 669, in __call__
for kind, data, pos in stream:
File "/usr/local/lib/python2.7/dist-packages/genshi/output.py", line 774, in __call__
for kind, data, pos in chain(stream, [(None, None, None)]):
File "/usr/local/lib/python2.7/dist-packages/genshi/output.py", line 594, in __call__
for ev in stream:
File "/usr/local/lib/python2.7/dist-packages/genshi/core.py", line 289, in _ensure
for event in stream:
File "/usr/local/lib/python2.7/dist-packages/genshi/core.py", line 289, in _ensure
for event in stream:
File "/usr/local/lib/python2.7/dist-packages/genshi/filters/transform.py", line 706, in _unmark
for mark, event in stream:
File "/usr/local/lib/python2.7/dist-packages/genshi/filters/transform.py", line 1195, in __call__
for mark, (kind, data, pos) in stream:
File "/usr/local/lib/python2.7/dist-packages/genshi/filters/transform.py", line 734, in __call__
for mark, event in stream:
File "/usr/local/lib/python2.7/dist-packages/genshi/filters/transform.py", line 702, in _mark
for event in stream:
File "/usr/local/lib/python2.7/dist-packages/genshi/template/base.py", line 618, in _include
for event in stream:
File "/usr/local/lib/python2.7/dist-packages/genshi/template/markup.py", line 326, in _match
for event in stream:
File "/usr/local/lib/python2.7/dist-packages/genshi/template/base.py", line 578, in _flatten
result = _eval_expr(data, ctxt, vars)
File "/usr/local/lib/python2.7/dist-packages/genshi/template/base.py", line 289, in _eval_expr
retval = expr.evaluate(ctxt)
File "/usr/local/lib/python2.7/dist-packages/genshi/template/eval.py", line 177, in evaluate
return eval(self.code, _globals, {'__data__': data})
File "<string>", line 1, in <Expression u'_'>
File "/usr/local/lib/python2.7/dist-packages/genshi/template/eval.py", line 310, in lookup_name
val = cls.undefined(name)
File "/usr/local/lib/python2.7/dist-packages/genshi/template/eval.py", line 413, in undefined
raise UndefinedError(key, owner=owner)
genshi.template.eval.UndefinedError: "_" not defined