I appreciate that I dig an old stream, but have an alternative solution.
I always tried to determine () to work correctly. The most effective solution I found is to use the following list:
py:if="myobject.thelist.get('blah',0) == 0"
Basic Python in Genshi - if it is undefined, we give it a default value. If you need to make sure that the default value will not pollute your data, return something else other than 0.
source
share