diff --git a/product/ERP5SyncML/SynchronizationTool.py b/product/ERP5SyncML/SynchronizationTool.py index fe05a004e6185f42f19e0d1481eef86d1b2ca908..b4e804f0987b676228c70e05302a5c1151ba33a4 100755 --- a/product/ERP5SyncML/SynchronizationTool.py +++ b/product/ERP5SyncML/SynchronizationTool.py @@ -954,6 +954,16 @@ class SynchronizationTool( SubscriptionSynchronization, PublicationSynchronizati """ return 'sub_' + title + security.declareProtected(Permissions.ModifyPortalContent, 'addNode') + def addNode(self, conduit='ERP5Conduit',**kw): + """ + """ + # Import the conduit and get it + from Products.ERP5SyncML import Conduit + conduit_module = __import__('.'.join([Conduit.__name__, conduit]), globals(), locals(), ['']) + conduit_object = getattr(conduit_module, conduit)() + return conduit_object.addNode(**kw) + # security.declarePrivate('notify_sync') # def notify_sync(self, event_type, object, infos): # """Notification from the event service.