[Zope3-Users] DropdownWidget with SimpleVocabulary causes ConversionError.

Michael Howitz mh at gocept.com
Wed Mar 29 01:58:17 EST 2006


Am Montag, den 27.03.2006, 18:31 +0900 schrieb wata at kke.biglobe.ne.jp:
> I'd like to ask one more question.
> 
> Why does SimpleVocabulary.fromValues/fromItems() not set 'title' ?
> Is there any good reason?
> Current implementation is unconvenient for non-ascii people.

Sure. Maybe a new method is needed which gets tuples of length three
which sets value, token and title.
Otherwise you can write a subclass of SimpleVocabulary which is more
convenient for non-ascii people. (Maybe there is a reason why it is
called 'simple' ;-)

mac





More information about the Zope3-users mailing list