Commit cc0ee335 authored by Jérome Perrin's avatar Jérome Perrin

XXX fix PortalTransforms errors

parent 9a3d5c2e
Pipeline #36551 failed with stage
in 0 seconds
......@@ -23,13 +23,8 @@ from Products.PortalTransforms.transforms.broken import BrokenTransform
def import_from_name(module_name):
""" import and return a module by its name """
__traceback_info__ = (module_name,)
m = import_module(module_name)
try:
for sub in module_name.split(".")[1:]:
m = getattr(m, sub)
except AttributeError as e:
raise ImportError(str(e))
return m
return import_module(module_name)
def make_config_persistent(kwargs):
""" iterates on the given dictionnary and replace list by persistent list,
......
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