diff --git a/product/ERP5SyncML/XMLSyncUtils.py b/product/ERP5SyncML/XMLSyncUtils.py index 296599e1264e4808a983b839cb45a3bea86d022c..76b9ef0d8b7c7cd3bfb0765c86d84876aff34443 100644 --- a/product/ERP5SyncML/XMLSyncUtils.py +++ b/product/ERP5SyncML/XMLSyncUtils.py @@ -1118,9 +1118,16 @@ class XMLSyncUtils(XMLSyncUtilsMixin): alert_code = self.getAlertCode(remote_xml) # Import the conduit and get it - conduit_name = subscriber.getConduit() - conduit_module = __import__('.'.join([Conduit.__name__, conduit_name]), globals(), locals(), ['']) - conduit = getattr(conduit_module, conduit_name)() + if conduit_name.startswith('Products'): + path = conduit_name + conduit_name = conduit_name.split('.')[-1] + LOG('SyncMLUtils.SyncModif (path,conduit_name)',0,(path,conduit_name)) + conduit_module = __import__(path, globals(), locals(), ['']) + conduit = getattr(conduit_module, conduit_name)() + else: + conduit_module = __import__('.'.join([Conduit.__name__, conduit_name]), + globals(), locals(), ['']) + conduit = getattr(conduit_module, conduit_name)() LOG('SyncModif, subscriber:',0,subscriber) # Then apply the list of actions (xml_confirmation,has_next_action,cmd_id) = self.applyActionList(cmd_id=cmd_id,