When using a form with schema.ASCIILine and settings the widgets['...'].mode = interfaces.DISPLAY_MODE you always get a type validation error.
Switching to a schema.TextLine or keeping ASCIILine but using interfaces.HIDDEN_MODE is ok. It's like that the default used with DISPLAY_MODE is always an Unicode, or something similar.
When using a form with schema.ASCIILine and settings the
widgets['...'].mode = interfaces.DISPLAY_MODE
you always get a type validation error.Switching to a schema.TextLine or keeping ASCIILine but using interfaces.HIDDEN_MODE is ok. It's like that the default used with DISPLAY_MODE is always an Unicode, or something similar.