[silva-dev] SilvaExternalSources / Check Boxes: bug
Martijn Faassen
faassen at infrae.com
Tue Apr 13 17:52:56 CEST 2004
Marc Petitmermet wrote:
> something is buggy with checkboxes support in SilvaExternalSources
> (cvs version of today, 09.04.2004, 18:10):
>
> - after saving the external source the values of the checkboxes are
> always shown as "1" in the editor regardless if the checkbox has been
> set or not. at least the actual values of the checkboxes are stored
> correctly although they are shown incorrectly.
>
> - but as soon as you edit an existing external source all stored values
> of the checkboxes are reset again to "1".
>
> my workaround for now is to use radio buttons or listfields. but i would
> prefer if the checkboxes would work properly.
We actually discovered this bug last week as well. We know what's wrong,
though unfortunately I don't expect it's an easy fix, as I need to write
some supporting code in Formulator.
The trouble right now is that Formulator has no way to turn something
serialized as XML (text) back into the right value for Formulator
itself. Thus even a value stored as the string '0' is interpreted by
Python as the truth value.
We have used the same workaround (using listfields) here for our work on
CSVSource.
Regards,
Martijn
More information about the silva-dev
mailing list