Commit 4dbacd3b authored by Nicolas Delaby's avatar Nicolas Delaby

Add missing var

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14289 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f46ac6d9
...@@ -1118,13 +1118,14 @@ class XMLSyncUtils(XMLSyncUtilsMixin): ...@@ -1118,13 +1118,14 @@ class XMLSyncUtils(XMLSyncUtilsMixin):
alert_code = self.getAlertCode(remote_xml) alert_code = self.getAlertCode(remote_xml)
# Import the conduit and get it # Import the conduit and get it
conduit_name = subscriber.getConduit()
if conduit_name.startswith('Products'): if conduit_name.startswith('Products'):
path = conduit_name path = conduit_name
conduit_name = conduit_name.split('.')[-1] conduit_name = conduit_name.split('.')[-1]
conduit_module = __import__(path, globals(), locals(), ['']) conduit_module = __import__(path, globals(), locals(), [''])
conduit = getattr(conduit_module, conduit_name)() conduit = getattr(conduit_module, conduit_name)()
else: else:
conduit_module = __import__('.'.join([Conduit.__name__, conduit_name]), conduit_module = __import__('.'.join([Conduit.__name__, conduit_name]),
globals(), locals(), ['']) globals(), locals(), [''])
conduit = getattr(conduit_module, conduit_name)() conduit = getattr(conduit_module, conduit_name)()
# Then apply the list of actions # Then apply the list of actions
......
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