[Zope3-dev] Re: Vocabulary the next proposal
Philipp von Weitershausen
philipp at weitershausen.de
Sat Mar 25 07:53:48 EST 2006
Gary Poster wrote:
>> You can, of course, leave this as it is and implement the 'tiks'
>> vocabulary as:
>>
>> def tiksLanguagesVocabulary(context):
>> return LanguagesVocabulary(context, 'tiks')
>>
>> and then register that as a regular IVocabularyFactory utility, in case
>> you're keen on saving lines in Python or just hesitant to create
>> classes.
>
>
> You then need to do a directlyProvides(tiksLanguagesVocabulary,
> IVocabularyFactory) on the function so that the utility zcml doesn't
> complain.
True.
More information about the Zope3-dev
mailing list