Comment 13 for bug 101818

Revision history for this message
Benno Luthiger (benno-luthiger) wrote :

I tested with the new Silva 1.6 release and SilvaExternalSources 1.2.
I found only one little problem in SilvaExternalSources/CodeSource._cast_value() (line 73):
===
       if value == '1':
===
This doesn't result in the correct value if the stored checkbox state is 1 (i.e. an integer value). Therefore, I changed this line to:
===
       if value in ['1', 1]:
===
Is there a better way to get the correct value?