How to make simple if / else in Genshi template language?
I found this ticket , which seems to suggest that Genshi does not support if / else, but this does not really explain what it supports.
I just want something like this:
<py:if test="c.row.currency"> ${c.row.currency.upper()} <py:else> ${c.row.dataset_.currency.upper()} </py:if>
But I get "Bad Directive: else". Should I use py: select instead ? I cannot figure out how to use it for the if / else condition.
python genshi pylons
AP257
source share