Commit 55d64244 authored by Jérome Perrin's avatar Jérome Perrin

zope4: depend on zope.component >= 5

parent c53e9ebf
...@@ -74,7 +74,7 @@ if 1: # BBB ...@@ -74,7 +74,7 @@ if 1: # BBB
# class # class
sm = zope.component.getSiteManager() sm = zope.component.getSiteManager()
portal = Acquisition.aq_parent(sm) portal = Acquisition.aq_parent(sm)
from zope.component.interfaces import ComponentLookupError from zope.interface.interfaces import ComponentLookupError
try: try:
ui_domain = sm.getUtility(ITranslationDomain, name='ui') ui_domain = sm.getUtility(ITranslationDomain, name='ui')
except ComponentLookupError: except ComponentLookupError:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment