[Grok-dev] re gistering vocabulary

Jeroen Michiel jmichiel at yahoo.com
Mon May 9 05:03:20 EDT 2011

I have the exact same issue while trying to upgrade a v1.1 project to v1.4

I create my vocabularies like this:

class TimeOfDayVocabulary(grok.GlobalUtility):
    grok.name('Time of Day')
    def __call__(self, context):
        return SimpleVocabulary.fromValues([u'Day', u'Night', u'Dusk',

but each time a schema field tries to access them, I get a
VocabularyRegistryError: unknown vocabulary: u'Time of Day'

I'll try to revert to v1.3 and see if that makes any difference...
View this message in context: http://old.nabble.com/registering-vocabulary-tp31388474p31575120.html
Sent from the Grok mailing list archive at Nabble.com.

More information about the Grok-dev mailing list