In
the Widgets default error_class (´´´´error´´´´) is reset to None in commit
4e53d28.
However that doesn't work if you have a validator on the sequence that this sequence widget visualizes, because then if that validator fails the erroneous region cannot be highlighted as it is not marked by any class in the code.
Use case for us: A question has several answers, at least one of those answers has to be true which was modeled as a validator on the colander.SchemaNode that models the collection of answers.
It seems as if the workaround of just setting the error class for the widget to 'error' again fixes the problem, but I don't understand why it was reset to None in the commit mentioned above.
In
deform/deform/widget.py
Line 1305 in fae6644
However that doesn't work if you have a validator on the sequence that this sequence widget visualizes, because then if that validator fails the erroneous region cannot be highlighted as it is not marked by any class in the code.
Use case for us: A question has several answers, at least one of those answers has to be true which was modeled as a validator on the colander.SchemaNode that models the collection of answers.
It seems as if the workaround of just setting the error class for the widget to 'error' again fixes the problem, but I don't understand why it was reset to None in the commit mentioned above.