Commit 74523af4 authored by Arnaud Fontaine's avatar Arnaud Fontaine

ZODB Components: PortalTransforms: No need to reload() 'erp5.' dynamic modules...

ZODB Components: PortalTransforms: No need to reload() 'erp5.' dynamic modules as this done through reset.
parent 476d212c
......@@ -264,8 +264,8 @@ class Transform(SimpleItem):
def reload(self):
""" reload the module where the transformation class is defined """
log('Reloading transform %s' % self.module)
m = import_from_name(self.module)
reload(m)
if not self.module.startswith('erp5.'):
reload(import_from_name(self.module))
self._tr_init()
def preprocess_param(self, kwargs):
......
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