Commit ce5a8e17 authored by Jérome Perrin's avatar Jérome Perrin Committed by Arnaud Fontaine

zope4: depend on zope.component >= 5

parent caf3d7a5
...@@ -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