py:choose not working
Bug #588939 reported by
ChrisW
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Chamelon Core |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
With the reference implementation of genshi you can do the following:
>>> from genshi.template import MarkupTemplate
>>> tmp = MarkupTemplate("""\
... <div xmlns="http://
... xmlns:py="http://
... <py:choose test="">
... <span py:when="0 == 1">0</span>
... <span py:when="1 == 1">1</span>
... </py:choose>
... </div>""")
>>> stream = tmp.generate()
>>> print stream.
<div xmlns="http://
<span>1</span>
</div>
The same doesn't work in chameleon.genshi.
To post a comment you must log in.
What does Chameleon do?