Comment 1 for bug 4576

Revision history for this message
Guilherme Salgado (salgado) wrote :

Stuart suggested adding a custom validator to the Choice field that has the vocabulary, but that doesn't work because the call to SimpleInputWidget.getInputValue() will end up SingleDataHelper._toFieldValue(), which in turn calls ItemsWidgetBase.convertTokensToValues(), and this last call will raise a 'InvalidValue, "token %r not found in vocabulary" %token'.