Commit 8ba72e2b authored by Tatuya Kamada's avatar Tatuya Kamada

registerUtility(), queryUtility() needs unwrapped object.

Otherwise they can not lookup(traverse) the utility.
parent 7824b430
......@@ -82,6 +82,8 @@ if 1: # BBB
portal = Acquisition.aq_parent(sm)
ui_domain = getattr(portal, '_save_ui_domain', [None]).pop()
if ui_domain is not None:
# aq_base() to remove acquisition wrapping
ui_domain = Acquisition.aq_base(ui_domain)
sm.registerUtility(ui_domain, ITranslationDomain, 'ui')
del portal._save_ui_domain
......
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