[Zope3-dev] Re: SVN: Zope3/trunk/src/zope/app/utility/vocabulary.py
new UtilityNames vocabulary, based on code from Jim Fulton
Philipp von Weitershausen
philipp at weitershausen.de
Wed Sep 15 14:22:13 EDT 2004
Fred Drake wrote:
> On Tue, 14 Sep 2004 11:36:42 -0400, Stephan Richter
> <stephan.richter at tufts.edu> wrote:
>
>>Why did we need this? The existing utility vocabulary supports names already.
>>You can simply pass nameOnly=True to the constructor.
>
>
> Jim wanted this.
That doesn't give it more sense :)
Actually, the UtilityNamesVocabulary *is* an improvement over any other
vocabulary implementation we have so far because it respects that tokens
can only be ASCII. Other vocabularies (SimpleVocabulary,
UtilityVocabulary) are lacking this still.
Given that this is easily fixable the way ASCII tokens are generated
already in Fred's new vocabulary, I think we should rather converge the
vocabularies with the existing, almost identical functionality.
Reinventing the whell isn't something we need.
Philipp
More information about the Zope3-dev
mailing list