Commit 3d239ce2 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 06f5af79
...@@ -264,8 +264,8 @@ class Transform(SimpleItem): ...@@ -264,8 +264,8 @@ class Transform(SimpleItem):
def reload(self): def reload(self):
""" reload the module where the transformation class is defined """ """ reload the module where the transformation class is defined """
log('Reloading transform %s' % self.module) log('Reloading transform %s' % self.module)
m = import_from_name(self.module) if not self.module.startswith('erp5.'):
reload(m) reload(import_from_name(self.module))
self._tr_init() self._tr_init()
def preprocess_param(self, kwargs): 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