Skip to content

Bad default for SequenceWidget.error_class #168

@dwt

Description

@dwt

In

error_class = None
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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions