Skip to content

Commit

Permalink
Fix local utility lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
Justas Sadzevicius committed Nov 30, 2018
1 parent 90059d2 commit d90ac96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/zope/vocabularyregistry/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ class ZopeVocabularyRegistry(object):

def get(self, context, name):
"""See zope.schema.interfaces.IVocabularyRegistry"""
factory = zope.component.getUtility(IVocabularyFactory, name)
factory = zope.component.getUtility(
IVocabularyFactory, name=name, context=context)
return factory(context)

vocabularyRegistry = None
Expand Down

0 comments on commit d90ac96

Please sign in to comment.