Christian Zagrodnick wrote:
Actually you cannot make sources more straightforward as
zc.sourcefactory made it.
I agree. It's very nice.
So, when the contract is ISource, a widget would need to adapt
choice.vocabulary to IIterableSource to get the values. For terms it
should multiadapt (choice.voabulary, request) to
There probably could be standard adapters for:
IIterableVocabulary -> IIterableSource
IVocabularyTokenized -> ITerms (using multi adapter of (vocab, request))
That sounds like a sensible solution.
We also might think about not using choice.vocabulary but choice.source
... but that might break quite a lot more....
Yup, therefore -1.
http://worldcookery.com -- Professional Zope documentation and training
Zope3-dev mailing list