On Mar 25, 2006, at 5:41 AM, Philipp von Weitershausen 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.

Zope3-dev mailing list
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to