Commit 8c9a9f09 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 6569c1fc
......@@ -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()
security.declarePrivate('preprocess_param')
......
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